How to Install WSL for Windows 10 - Includes WSL2 Optional Steps

Hi @abcoathup,

No worries! Glad to do it.

All the sources I found suggested removing any trace of node/npm on your computer before installing nvm to avoid unexpected issues. This also includes removing any system variables with a path leading to node/npm files.

The error seems to suggest that something is expecting npm to handle the install instead of cURL. A leftover system variable pointing to npm is my first guess.

Were you running the install through the Linux terminal?

After fully uninstalling node/npm, you’d want to use the Linux terminal, Ubuntu in the case above, to install cURL with sudo apt-get install curl.

Then use cURL through the Linux terminal to install nvm with the command curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash.

Once installed, close and reopen the terminal for effects to take place and you can use nvm to install nodejs (which should include npm) with nvm install --lts.

It can be a bit tedious initially, but so far I’ve noticed much smoother performance working with my projects than on Windows directly (shocking, I know). Looking forward to version 2004! I’m not used to manually updating my tools. :sweat_smile:

1 Like