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`
![](https://img2018.cnblogs.com/blog/740516/201905/740516-20190507162602426-44303477.png)
> bug
![](https://img2018.cnblogs.com/blog/740516/201905/740516-20190507165541376-2071604508.png)
![](https://img2018.cnblogs.com/blog/740516/201905/740516-20190507165451293-680187529.png)
![](https://img2018.cnblogs.com/blog/740516/201905/740516-20190507165425733-152269297.png)