美文网首页
Ubuntu Debian Deepin下安装nodejs和np

Ubuntu Debian Deepin下安装nodejs和np

作者: 行走的程序猿 | 来源:发表于2017-08-29 09:00 被阅读609次

Node.js 6

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -`
sudo apt-get install -y nodejs

Alternatively, 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 compile and install native addons from npm you may also need to install build tools:
sudo apt-get install -y build-essential

Check nodejs

nodejs -v

Install npm

sudo apt-get install npm

Check npm

npm -v

相关文章

网友评论

      本文标题:Ubuntu Debian Deepin下安装nodejs和np

      本文链接:https://www.haomeiwen.com/subject/ahandxtx.html