问题描述:
$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 https://raw.github.com/Homebrew/homebrew/go/install 报错abort handshake
解决:使用 --insecure
安装完成brew之后
$brew update
$brew uninstall node
$brew install node
$sudo brew postinstall
最后
以上就是调皮寒风最近收集整理的关于bugs—npm install -g grunt-cli fail的全部内容,更多相关bugs—npm内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复