Truffle install失败问题

系统:MacOS
npm install -g truffle 命令安装后一直显示
truffle : command not found

Truffle executable is currently installed in /Users/liumingyu/.npm-global/bin/truffle. For some system or npm reason I ignore, this executable isn't accessible from the PATH

You can either:

- add a symlink to your /usr/local/bin/

$ sudo ln -sf /Users/liumingyu/.npm-global/bin/truffle /usr/local/bin/

- add /Users/liumingyu/.npm-global/bin to your path

Edit ~/.bash_profile. There will be a line that says something like PATH=$PATH:$HOME/bin.

Add :/Users/liumingyu/.npm-global/bin/ to the end (be sure you have the colon)

你可能感兴趣的:(Truffle install失败问题)