设为首页 加入收藏

TOP

mac系统 下 npm 安装 bower报错
2017-10-11 14:55:36 】 浏览:1184
Tags:mac 系统 npm 安装 bower 报错

在mac终端运行 sudo npm install -g bower

(安装之前你要确定你已经成功安装了node 和 git)

然后会报错 like this:

npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "install" "-g" "bower" npm ERR! node v5.2.0 npm ERR! npm v3.3.12 npm ERR! path /Users/path-to-directory/node_modules/npm/node_modules/rimraf/bin.js
...
npm ERR! shasum check failed for /tmp/npm-12464-50e9876a/registry.npmjs.org/bower/-/bower-1.8.0.tgz
...

解决办法:
先在终端运行:
xcodebuild -license

再运行:sudo npm install -g bower
 
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇macOS 安装 ctags 下一篇vmware 12 安装 mac os 10.12正式..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目