我只是擦拭并重新格式化我的整个Macbook Retina驱动器从头开始,
安装自制软件,
安装了xcode和接受的条款和条件,
去了curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
安装nvm并得到以下错误:
=> 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
echo $PATH
如果有任何帮助,则会返回/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
。
我尝试打开issue on github但尚未收到回复
知道我能做些什么才能让nvm和node正常运行?
答案 0 :(得分:0)
没有从nvm安装说明中读到这个。它解决了我的问题。
注意:在OS X上,如果在运行后找不到nvm:命令 安装脚本,可能是以下原因之一: -
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
再次安装脚本 您可能需要重新启动终端实例。尝试在终端中打开一个新标签/窗口,然后重试。