Ubuntu Debian Deepinでnodejsとnpmをインストールします.
556 ワード
Node.js 6
To comple and install native addons from npm you may also need to install build tools:
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -`
sudo apt-get install -y nodejs
Alternative ely,for Node.js 8curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Optional:install build toolsTo comple and install native addons from npm you may also need to install build tools:
sudo apt-get install -y build-essential
Check nodejsnodejs -v
Install npmsudo apt-get install npm
Check npmnpm -v