当前位置:   article > 正文

Mac 通过安装node、nvm、nrm、yarn;macOS 13_mac nrm

mac nrm

m1版本

先安装homebrew,参照:https://blog.csdn.net/CaptainJava/article/details/109135437https://blog.csdn.net/CaptainJava/article/details/109135437

安装nvm 

  1. # 执行
  2. brew install nvm
  3. # 输出如下:
  4. homebrew-core git:(master) brew install nvm
  5. ==> Downloading https://mirrors.aliyun.com/homebrew/homebrew-bottles/nvm-0.39.1_1.all.bottle.tar.gz
  6. ######################################################################## 100.0%
  7. ==> Pouring nvm-0.39.1_1.all.bottle.tar.gz
  8. ==> Caveats
  9. Please note that upstream has asked us to make explicit managing
  10. nvm via Homebrew is unsupported by them and you should check any
  11. problems against the standard nvm install method prior to reporting.
  12. You should create NVM's working directory if it doesn't exist:
  13. mkdir ~/.nvm
  14. Add the following to ~/.zshrc or your desired shell
  15. configuration file:
  16. export NVM_DIR="$HOME/.nvm"
  17. [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
  18. [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
  19. You can set $NVM_DIR to any location, but leaving it unchanged from
  20. /opt/homebrew/opt/nvm will destroy any nvm-installed Node installations
  21. upon upgrade/reinstall.
  22. Type `nvm help` for further information.
  23. ==> Summary
  24. 声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/310771
    推荐阅读
    相关标签