node.js & Unbuntu Linux & nvm & npm
node.js & Unbuntu Linux & nvm & npm
# curl
$ sudo apt install curl
curl install
# Latest release
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
# LTS release
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
$ node -v
$ npm -v
apt install
$ sudo apt install nodejs
$ sudo npm install -g npm
$ node -v
$ npm -v
nvm install
https://zzk.cnblogs.com/my/s/blogpost-p?Keywords=nvm
http://www.cnblogs.com/xgqfrms/p/5881799.html
close & re-open terminal
OK
https://github.com/nvm-sh/nvm#installation-and-update
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
$ command -v nvm
# v12.1.0
$ nvm install node
# LTS v10.15.3
$ nvm install 10.15.3
$ nvm ls-remote
$ nvm use node
# OR
$ nvm run node --version
$ node -v
$ npm -v
nvm-windows
https://github.com/coreybutler/nvm-windows
node env
set
NODE_EN
bug
refs
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10825908.html
未经授权禁止转载,违者必究!