Ubuntu Debian Deepinでnodejsとnpmをインストールします.

556 ワード

Node.js 6
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -`
sudo apt-get install -y nodejs
Alternative ely,for Node.js 8
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Optional:install build tools
To comple and install native addons from npm you may also need to install build tools:sudo apt-get install -y build-essentialCheck nodejsnodejs -vInstall npmsudo apt-get install npmCheck npmnpm -v