1. 使用 n 管理
1.1 On Mac
参考 https://medium.com/@mahcloud/mac-brew-node-10-upgrade-55d3e910eebb
$ brew install n
1.2 On Linux, n-install allows installation directly from GitHub; for instance: (参考GitHub - tj/n: Node version management)
$ curl -L https://git.io/n-install | bash
=== n successfully installed.
The active Node.js version is: v12.16.1
Run `n -h` for help.
To update n later, run `n-update`.
To uninstall, run `n-uninstall`.
IMPORTANT: OPEN A NEW TERMINAL TAB/WINDOW or run `. ~/.bashrc`
before using n and Node.js.
==

本文介绍了在Mac和Linux上使用n和nvm管理Node.js的步骤,包括安装、更新和解决常见问题。针对AWS Linux2环境,提供了安装nvm的解决方案,并提到了在EC2实例上设置Node.js的教程。在安装过程中可能遇到的locale和GLIBC版本不匹配问题也给出了相应的解决链接。
最低0.47元/天 解锁文章
5784

被折叠的 条评论
为什么被折叠?



