I did on Debian testing sudo apt install nodejs but I'm missing npm.
$ node -v
v8.11.2
$ npm -v
bash: npm: command not found
What did I miss?
I did on Debian testing sudo apt install nodejs but I'm missing npm.
$ node -v
v8.11.2
$ npm -v
bash: npm: command not found
What did I miss?
npm turned out to involve too much work to maintain properly (with security support etc.) in Debian 9, given the current level of maintainer involvement, so it was removed from the release and isn’t available from the “stable” Debian repositories.
To install NPM you should follow the upstream instructions, which will configure your system to use their repository:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
This will install Node.js 8.x; if you need 10.x you can replace the “8” above with “10”.
To Install NodeJS execute following three steps
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs npm
sudo ln -s /usr/bin/nodejs /usr/bin/node