npm install返回错误

时间:2016-07-07 08:07:38

标签: node.js npm

当我运行npm install时,我收到以下错误。

npm WARN enoent ENOENT, open '/Users/IBricchi/package.json'
npm WARN generator-steroids@1.0.21 requires a peer of yo@1.8.1 || >=1.8.3 but none was installed.
npm WARN grunt-contrib-clean@1.0.0 requires a peer of grunt@>= 0.4.5 but none was installed.
npm WARN grunt-contrib-coffee@1.0.0 requires a peer of grunt@>= 0.4.5 but none was installed.
npm WARN grunt-contrib-concat@1.0.1 requires a peer of grunt@>=0.4.0 but none was installed.
npm WARN grunt-contrib-sass@1.0.0 requires a peer of grunt@>=0.4.0 but none was installed.
npm WARN grunt-extend-config@0.9.5 requires a peer of grunt@>=0.4.0 but none was installed.
npm WARN IBricchi No description
npm WARN IBricchi No repository field.
npm WARN IBricchi No README data
npm WARN IBricchi No license field.

我尝试过在网上寻找答案,但我所尝试过的一切都没有做到。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

/Users/IBricchi/package.json中,npm找不到package.json。可能你错误​​地从你的主目录运行npm install。您应该从项目根目录运行npm install