当前位置:   article > 正文

node.js入门之 mac os下安装 nvm_在mac环境下使用nvm安装node.js

在mac环境下使用nvm安装node.js

1.安装

安装脚本与 linux 下一样

  1. % wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  2. => Downloading nvm from git to '/Users/czy/.nvm'
  3. => 正克隆到 '/Users/czy/.nvm'...
  4. remote: Enumerating objects: 355, done.
  5. remote: Counting objects: 100% (355/355), done.
  6. remote: Compressing objects: 100% (302/302), done.
  7. remote: Total 355 (delta 39), reused 173 (delta 28), pack-reused 0
  8. 接收对象中: 100% (355/355), 221.92 KiB | 420.00 KiB/s, 完成.
  9. 处理 delta 中: 100% (39/39), 完成.
  10. * (头指针在 FETCH_HEAD 分离)
  11. master
  12. => Compressing and cleaning up git repository
  13. => Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
  14. => Create one of them and run this script again
  15. OR
  16. => Append the following lines to the correct file yourself:
  17. export NVM_DIR="$HOME/.nvm"
  18. [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/66927
推荐阅读
相关标签
  

闽ICP备14008679号