node.js入门之 mac os下安装 nvm

1.安装

安装脚本与 linux 下一样

% wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

=> Downloading nvm from git to '/Users/czy/.nvm'
=> 正克隆到 '/Users/czy/.nvm'...
remote: Enumerating objects: 355, done.
remote: Counting objects: 100% (355/355), done.
remote: Compressing objects: 100% (302/302), done.
remote: Total 355 (delta 39), reused 173 (delta 28), pack-reused 0
接收对象中: 100% (355/355), 221.92 KiB | 420.00 KiB/s, 完成.
处理 delta 中: 100% (39/39), 完成.
* (头指针在 FETCH_HEAD 分离)
  master
=> Compressing and cleaning up git repository

=> Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
=> Create one of them and run this script again
   OR
=> Append the following lines to the correct file yourself:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh

猜你喜欢

转载自blog.csdn.net/qq_27868061/article/details/127229558