bugs—npm install -g grunt-cli fail

问题描述:

 $node -v

 $2.14.1

 $npm -v

 $-bash npm not found

  node-module中找不到npm包。试过用sudo,在execPath 中添加/opt/local/bin,/opt/local/sbin 不行。

  该用brew 安装node

  在安装brew的时候,运行 

  ruby -e "$(curl -fsSL raw.github.com/Homebrew/homebrew/go/install  报错abort handshake

  解决:使用 --insecure 

  

  安装完成brew之后

  $brew update

  $brew uninstall node

  $brew install node

  $sudo brew postinstall 


  

  


猜你喜欢

转载自blog.csdn.net/u013237862/article/details/70171481