2017-09-01 152 views
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

请帮助!提前致谢。

回答

0

Zsh不会读取您的Bash环境文件(除非您通过 来源,不推荐)。尝试使设置为 ~/.zshrc。你可以print(或echo)他们在Zsh,以确保他们 了。

(请注意,你有一些问题的字符在你列出的文件。 希望这只是一个贴的问题,但我看到的是弯引号和一些 流浪$秒)