Unix/Linux/macOS & Node.js & NVM All In One
Unix/Linux/macOS & Node.js & NVM All In One
nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
https://github.com/nvm-sh/nvm#install--update-script
https://github.com/xyz-data/RAIO/issues/242
https://github.com/xyz-data/RAIO/issues/230
https://zhuanlan.zhihu.com/p/22493707
http://logs.libuv.org/node.js/2016-06-28
change nvm default version
$ nvm alias default 16.14.2
$ nvm alias default 16
$ nvm -h
$ nvm ls-remote
$ nvm install 16.14.2
# 永久修改默认值
$ nvm alias default 16.14.2
# 临时使用一次
$ nvm use 16.14.2
https://stackoverflow.com/questions/47190861/how-can-the-default-node-version-be-set-using-nvm
https://www.cnblogs.com/xgqfrms/tag/nvm/
demo
# 永久修改默认值
$ nvm alias default 16.14.2
➜ ~ node -v
v16.14.2
➜ ~ which node
/Users/xgqfrms-mbp/.nvm/versions/node/v16.14.2/bin/node



https://www.cnblogs.com/xgqfrms/p/16163300.html
refs
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/9756317.html
未经授权禁止转载,违者必究!

浙公网安备 33010602011771号