0
我安装了哟百万次,它从来没有工作...我卸载节点,并重新安装它,删除npm文件夹,仍然哟无法找到。即使在修复路径后,哟不能在mac上工作
该错误消息我得到的是:
的zsh:找不到命令:在.bash_profile中哟
我更新路径如下:
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM$
# added by Anaconda2 4.2.0 installer
export PATH="/Users/myusername/anaconda/bin:$PATH"
# added by Anaconda3 4.4.0 installer
export PATH="/Users/myusername/anaconda3/bin:$PATH"
# added by Anaconda3 4.4.0 installer
export PATH="/Users/myusername/anaconda3/bin:$PATH"
export PATH="/Users/myusername/npm/lib/:$PATH"
export PATH="/usr/local/bin:$PATH"
和最新的.bashrc文件如下:
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export GMAIL_USERNAME=“"
export GMAIL_PASSWORD=“”
export MAILCHIMP_API_KEY=""
export MAILCHIMP_LIST_ID=""
export OWNER_EMAIL=“"
export PATH=/Users/myusername/npm/bin:/Users/myusername/.rvm/gems/ruby-2.2.3/$
export PATH=/Users/myusername/npm/bin:/Users/myusername/.rvm/gems/ruby-2.2.3/$
export PATH=/Users/myusername/npm/lib
export PATH=/usr/local/bin
个
Node.js的是安装在
在/ usr/local/bin目录/节点
NPM安装在
在/ usr/local/bin目录/ NPM
请帮助!提前致谢。