即使在修复路径后,Yo也无法在Mac上工作



我安装了百万次,它从未工作……我卸载了节点并重新安装了它,删除了npm文件夹,仍然找不到您。

我收到的错误消息是:

zsh:找不到命令:yo

i在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/node

npm安装在

/usr/local/bin/npm

请帮忙!!!预先感谢。

zsh不会读取您的bash环境文件(除非您告诉它采购它们;不建议)。尝试将这些export设置进行 ~/.zshrc。您可以在ZSH中使用print(或echo),以确保它们

(请注意,您列出的文件中有一些有问题的字符。希望这只是一个糊状问题,但我看到卷曲的报价和一些流浪$ s。)

相关内容

  • 没有找到相关文章

最新更新