安装nvm,用来管理node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
判断nvm是否安装成功
command -v nvm
通过nvm安装node
nvm install node
to download the latest version of npm, on the command line, run the following command:
npm install -g npm
网友评论