<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: VMHEAVEN</title>
    <description>The latest articles on DEV Community by VMHEAVEN (@vmheaven).</description>
    <link>https://dev.to/vmheaven</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4201152%2F6c211521-bf12-4216-a163-83578164d5ef.jpg</url>
      <title>DEV Community: VMHEAVEN</title>
      <link>https://dev.to/vmheaven</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vmheaven"/>
    <language>en</language>
    <item>
      <title>curl: command not found? Fix it on any Linux distro (and Windows)</title>
      <dc:creator>VMHEAVEN</dc:creator>
      <pubDate>Thu, 19 Nov 2026 22:16:05 +0000</pubDate>
      <link>https://dev.to/vmheaven/curl-command-not-found-fix-it-on-any-linux-distro-and-windows-2aan</link>
      <guid>https://dev.to/vmheaven/curl-command-not-found-fix-it-on-any-linux-distro-and-windows-2aan</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;First published on the VMHeaven blog: &lt;strong&gt;&lt;a href="https://vmheaven.io/blog/troubleshooting/curl-command-not-found" rel="noopener noreferrer"&gt;curl: command not found? How to fix it on any Linux distribution&lt;/a&gt;&lt;/strong&gt;. The canonical points there, and the full guide covers every distro, Docker, PATH issues and Windows.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; &lt;code&gt;curl: command not found&lt;/code&gt; almost always means curl is not installed. Minimal Linux images leave it out, and the Debian installer ships &lt;code&gt;wget&lt;/code&gt; instead of curl, so the fix is usually one package. Only when curl is installed and the shell still cannot find it do you have a PATH problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Debian / Ubuntu&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt update
sudo apt install -y curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Alpine&lt;/strong&gt; (what most slim Docker images are built on):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apk add curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Rocky / AlmaLinux / RHEL / Fedora&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo dnf install -y curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Arch:&lt;/strong&gt; &lt;code&gt;sudo pacman -S --noconfirm curl&lt;/code&gt; - &lt;strong&gt;openSUSE:&lt;/strong&gt; &lt;code&gt;sudo zypper install -y curl&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  In a Docker container
&lt;/h2&gt;

&lt;p&gt;You are usually already root (so no &lt;code&gt;sudo&lt;/code&gt;) and the package index is empty. Install it in the Dockerfile, not by hand:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;RUN&lt;/span&gt; apt-get update \
 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; apt-get install -y --no-install-recommends curl ca-certificates \
 &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; rm -rf /var/lib/apt/lists/*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add &lt;code&gt;ca-certificates&lt;/code&gt; too, or every HTTPS request fails with &lt;code&gt;curl: (77)&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installed but still "not found"?
&lt;/h2&gt;

&lt;p&gt;Then it is a PATH problem, not a missing package:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The shell cached an old location -&amp;gt; run &lt;code&gt;hash -r&lt;/code&gt; (bash) or &lt;code&gt;rehash&lt;/code&gt; (zsh), or open a new shell.&lt;/li&gt;
&lt;li&gt;A startup file overwrote PATH (if &lt;code&gt;ls&lt;/code&gt;/&lt;code&gt;grep&lt;/code&gt; are also missing) -&amp;gt; restore PATH for the session, then fix the line in &lt;code&gt;~/.bashrc&lt;/code&gt; / &lt;code&gt;~/.zshrc&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo: curl: command not found&lt;/code&gt; while plain &lt;code&gt;curl&lt;/code&gt; works -&amp;gt; sudo uses &lt;code&gt;secure_path&lt;/code&gt;, not your PATH. Install the distro package (it lands in &lt;code&gt;/usr/bin&lt;/code&gt;), or pass the full path: &lt;code&gt;sudo "$(command -v curl)" ...&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Full guide
&lt;/h2&gt;

&lt;p&gt;Distroless images, OpenWrt, the Windows &lt;code&gt;curl.exe&lt;/code&gt; vs the PowerShell &lt;code&gt;curl&lt;/code&gt; alias, and every distro are covered in the complete version:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://vmheaven.io/blog/troubleshooting/curl-command-not-found" rel="noopener noreferrer"&gt;curl: command not found - the complete fix&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Need a clean box to try this on? A &lt;a href="https://vmheaven.io/standard-kvm" rel="noopener noreferrer"&gt;Debian or Ubuntu VPS&lt;/a&gt; spins up in a minute.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>bash</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>npx: command not found? Fix it on Linux, macOS and Windows</title>
      <dc:creator>VMHEAVEN</dc:creator>
      <pubDate>Thu, 19 Nov 2026 22:15:52 +0000</pubDate>
      <link>https://dev.to/vmheaven/npx-command-not-found-fix-it-on-linux-macos-and-windows-4jpo</link>
      <guid>https://dev.to/vmheaven/npx-command-not-found-fix-it-on-linux-macos-and-windows-4jpo</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;First published on the VMHeaven blog: &lt;strong&gt;&lt;a href="https://vmheaven.io/blog/troubleshooting/npx-command-not-found" rel="noopener noreferrer"&gt;npx: command not found? Fix it on Linux, macOS and Windows&lt;/a&gt;&lt;/strong&gt;. The canonical points there; the full guide covers nvm, PATH, Docker and corporate proxies.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; &lt;code&gt;npx&lt;/code&gt; ships with &lt;code&gt;npm&lt;/code&gt;, which ships with Node.js. &lt;code&gt;npx: command not found&lt;/code&gt; almost always means Node is either not installed or not on your PATH.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Node (npx comes with it)
&lt;/h2&gt;

&lt;p&gt;The cleanest way is a version manager, so you are not stuck on the distro's ancient Node:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;nvm (Linux / macOS)&lt;/strong&gt; - install nvm from &lt;a href="https://github.com/nvm-sh/nvm#installing-and-updating" rel="noopener noreferrer"&gt;its repo&lt;/a&gt;, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nvm install --lts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check all three:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node -v
npm -v
npx -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Windows:&lt;/strong&gt; install Node from nodejs.org or &lt;code&gt;winget install OpenJS.NodeJS.LTS&lt;/code&gt;, then open a &lt;strong&gt;new&lt;/strong&gt; terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Node is installed but npx is still "not found"
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A new shell is needed.&lt;/strong&gt; nvm adds Node to PATH in &lt;code&gt;~/.bashrc&lt;/code&gt; / &lt;code&gt;~/.zshrc&lt;/code&gt;; open a new terminal or &lt;code&gt;source&lt;/code&gt; the file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;zsh: command not found: npx&lt;/code&gt; on macOS&lt;/strong&gt; - the nvm or Homebrew line is missing from &lt;code&gt;~/.zshrc&lt;/code&gt;. Add it back.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In a Docker image&lt;/strong&gt; - use an official &lt;code&gt;node:&lt;/code&gt; base image. A bare &lt;code&gt;debian&lt;/code&gt; or &lt;code&gt;alpine&lt;/code&gt; image has no Node, so npm and npx are absent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Very old npm (&amp;lt; 5.2)&lt;/strong&gt; never had npx: &lt;code&gt;npm install -g npm@latest&lt;/code&gt;, or use &lt;code&gt;npm exec&lt;/code&gt; instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Full guide
&lt;/h2&gt;

&lt;p&gt;nvm vs fnm vs the distro package, the deprecated standalone &lt;code&gt;npx&lt;/code&gt; package, proxies and every OS are in the complete version:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://vmheaven.io/blog/troubleshooting/npx-command-not-found" rel="noopener noreferrer"&gt;npx: command not found - the complete fix&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Need a clean box to try this on? A &lt;a href="https://vmheaven.io/ubuntu-vps" rel="noopener noreferrer"&gt;Node-ready Ubuntu VPS&lt;/a&gt; spins up in a minute.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>npm</category>
      <category>webdev</category>
    </item>
    <item>
      <title>vite: command not found? Run the local binary the right way</title>
      <dc:creator>VMHEAVEN</dc:creator>
      <pubDate>Thu, 19 Nov 2026 22:15:30 +0000</pubDate>
      <link>https://dev.to/vmheaven/vite-command-not-found-run-the-local-binary-the-right-way-36j5</link>
      <guid>https://dev.to/vmheaven/vite-command-not-found-run-the-local-binary-the-right-way-36j5</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;First published on the VMHeaven blog: &lt;strong&gt;&lt;a href="https://vmheaven.io/blog/troubleshooting/vite-command-not-found" rel="noopener noreferrer"&gt;vite: command not found? Run the local binary the right way&lt;/a&gt;&lt;/strong&gt;. The canonical points there; the full guide covers npm/pnpm/yarn, CI and global installs.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Vite is a &lt;strong&gt;local&lt;/strong&gt; devDependency, not a global command. &lt;code&gt;vite: command not found&lt;/code&gt; (or &lt;code&gt;sh: vite: command not found&lt;/code&gt;) almost always means you ran plain &lt;code&gt;vite&lt;/code&gt; in a shell where the project's local binary (&lt;code&gt;node_modules/.bin&lt;/code&gt;) is not on PATH.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix
&lt;/h2&gt;

&lt;p&gt;Install dependencies, then run Vite through the tool that knows about &lt;code&gt;node_modules/.bin&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install
npm run dev     &lt;span class="c"&gt;# uses the "dev": "vite" script in package.json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or run the local binary directly, without a script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx vite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;pnpm and yarn have their own:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm install &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; pnpm dev     &lt;span class="c"&gt;# or: pnpm exec vite&lt;/span&gt;
yarn install &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; yarn dev     &lt;span class="c"&gt;# or: yarn vite&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why plain &lt;code&gt;vite&lt;/code&gt; fails
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;npm run dev&lt;/code&gt; works but &lt;code&gt;vite&lt;/code&gt; does not&lt;/strong&gt; - that is expected. npm scripts put &lt;code&gt;node_modules/.bin&lt;/code&gt; on PATH; your interactive shell does not. Use the script or &lt;code&gt;npx vite&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In CI / Docker&lt;/strong&gt; - run &lt;code&gt;npm ci&lt;/code&gt; before the build step and call &lt;code&gt;npx vite build&lt;/code&gt; (or &lt;code&gt;npm run build&lt;/code&gt;), never bare &lt;code&gt;vite&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You really want it global&lt;/strong&gt; - &lt;code&gt;npm install -g vite&lt;/code&gt; works, but pinning Vite per project is safer; versions differ between projects.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Full guide
&lt;/h2&gt;

&lt;p&gt;Monorepos, &lt;code&gt;vite: not found&lt;/code&gt; in Docker builds, Windows, and the pnpm &lt;code&gt;.bin&lt;/code&gt; quirks are in the complete version:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://vmheaven.io/blog/troubleshooting/vite-command-not-found" rel="noopener noreferrer"&gt;vite: command not found - the complete fix&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Need a box to build on? A &lt;a href="https://vmheaven.io/standard-kvm" rel="noopener noreferrer"&gt;Node-ready VPS&lt;/a&gt; spins up in a minute.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>vite</category>
      <category>webdev</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
