Forums

npm not found

Hello,

if i simply open a bash console and type

13:59 ~ $ npm
bash: npm: command not found

npm is not found. I thought its part of the batteries included style. Did i miss something? .. yes i have googled before and also searched the forum ;P

Thanks in advance for help

We suggest using nvm -- https://help.pythonanywhere.com/pages/Node/.

Iam using sass to write my css files in my django project. I simply want to npm install my package.json and compile my scss files.

How is this even possible without npm? Can i do the same with nvm? So do i understand it right, that npm was once default installed but is not anymore?

Thanks for help.

Sorry, my reply was not clear enough. You need nvm to install node and npm. nvm allows you to freely use different node versions. Once you have node installed, you can use npm. Since we have a fixed system image, if we provided default npm package, you could use only that version for given system image.

thanks everything works now as expected. I was not familiar with nvm and didn't know that it brings npm with it.

No problem! Glad it works for you.