xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

node.js & Unbuntu Linux & nvm & npm

node.js & Unbuntu Linux & nvm & npm

https://websiteforstudents.com/install-the-latest-node-js-and-nmp-packages-on-ubuntu-16-04-18-04-lts/

# 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

https://github.com/nvm-sh/nvm

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, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2019-05-07 15:47  xgqfrms  阅读(403)  评论(21编辑  收藏  举报