如何使Yeoman工作

时间:2014-05-22 14:43:12

标签: yeoman

我安装了Yeoman,当我运行yo命令时,我得到了这个:

Error: EACCES, permission denied '/Users/Richard_Home/.config/configstore/insight-yo.yml'
You don't have access to this file.

at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at Object.create.all.set (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:56:8)
at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:19:11)
at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/insight.js:23:34)
at Object.<anonymous> (/usr/local/lib/node_modules/yo/cli.js:23:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)

[03:35:36]〜$

我已尝试将其添加到我的$path:

 export PATH=/usr/local/bin/npm:$PATH

因为那是npm的地方。

当我做sudo你安装generator-webapp

我收到了这个回复:

A quick solution would be to change where npm stores global packages by
putting ~/npm/bin in your PATH and running:
npm config set prefix ~/npm

我已经npm config set prefix ~/npm

我仍然得到相同的错误访问被拒绝。

我只想运行yo我已将它安装在iMac上并立即运行。我在macBook上。

0 个答案:

没有答案