我安装了数百万次,它从未工作过...我卸载了节点并重新安装它,删除了npm文件夹,但仍然无法找到。
我得到的错误信息是:
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
请帮忙!!!提前谢谢。
答案 0 :(得分:0)
Zsh不会读取您的Bash环境文件(除非您告诉它
采购他们;不建议)。尝试在中进行export
设置
~/.zshrc
。你可以在Zsh中print
(或echo
)来确保它们
了。
(请注意,列出的文件中有一些有问题的字符。
希望它只是一个粘贴问题,但我看到卷曲的引用和一些
迷路$
s。)