我只是擦除并重新格式化我的整个 Macbook Retina 驱动器以从头开始,安装自制软件,安装 xcode 并接受条款和条件,去安装 nvmcurl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash并得到以下错误:
=> nvm is already installed in /Users/dillon/.nvm, trying to update using git
=> => 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" # This loads nvm
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Run Code Online (Sandbox Code Playgroud)
echo $PATH/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin如果有帮助,请返回。
我尝试在 github 上打开一个问题,但没有收到回复
知道我该怎么做才能让 nvm 和 node 正常运行吗?
没有从 nvm 安装说明中读到这个。它解决了我的问题。
注意:在 OS X 上,如果您在运行安装脚本后得到 nvm: command not found,可能是以下原因之一:-
Run Code Online (Sandbox Code Playgroud)your system may not have a [.bash_profile file] where the command is set up. Simply create one with touch ~/.bash_profile and run the再次安装脚本,您可能需要重新启动终端实例。尝试在终端中打开一个新选项卡/窗口并重试。
| 归档时间: |
|
| 查看次数: |
6856 次 |
| 最近记录: |