Node.js #
安装NodeJS #
MacOS #
安装nvm
1wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
安装最新的LTS版本的Node
1# "node" is an alias for the latest version
2nvm install node
切换npm源:
1echo 'registry=https://registry.npmmirror.com/
2always-auth=false' > ~/.npmrc