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
請幫助!提前致謝。