【发布时间】:2014-08-11 22:05:03
【问题描述】:
我正在试用 Google Polymer。成功安装了 node.js,如下所示,npm 和 Bower 已安装。但是,当输入“bower init cmd”时,它会给我以下错误:我做错了什么以及如何最好地解决这个问题?运行 Mac OS X (Mav) 提前致谢。
shukhratnegmatov:Polymer shukhratnegmatov$ node -v
v0.10.30
shukhratnegmatov:Polymer shukhratnegmatov$ npm -v
1.4.21
shukhratnegmatov:Polymer shukhratnegmatov$ bower -v
1.3.9
shukhratnegmatov:Polymer shukhratnegmatov$ bower init
Error: EACCES, permission denied '/Users/shukhratnegmatov/.config/configstore'
at Object.fs.mkdirSync (fs.js:647:18)
at Function.sync (/usr/local/lib/node_modules/bower/node_modules/mkdirp/index.js:70:13)
at Object.create.all.get (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:40:13)
at Object.Configstore (/usr/local/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:26:44)
at new Insight (/usr/local/lib/node_modules/bower/node_modules/insight/lib/insight.js:26:34)
at Object.setup (/usr/local/lib/node_modules/bower/lib/util/analytics.js:18:19)
at Object.<anonymous> (/usr/local/lib/node_modules/bower/bin/bower:72:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
shukhratnegmatov:Polymer shukhratnegmatov$
【问题讨论】:
-
你检查了
.../.config/configstoredir/file 的权限吗? -
我有类似的问题,看起来我的 .../.config/configstore 文件夹不存在。我不确定我做了什么导致这个......
标签: node.js macos terminal polymer bower-install