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