2016-07-07 133 views
0

当我运行npm安装我得到以下错误。npm安装返回错误

npm WARN enoent ENOENT, open '/Users/IBricchi/package.json' 
npm WARN [email protected] requires a peer of [email protected] || >=1.8.3 but none was installed. 
npm WARN [email protected] requires a peer of [email protected]>= 0.4.5 but none was installed. 
npm WARN [email protected] requires a peer of [email protected]>= 0.4.5 but none was installed. 
npm WARN [email protected] requires a peer of [email protected]>=0.4.0 but none was installed. 
npm WARN [email protected] requires a peer of [email protected]>=0.4.0 but none was installed. 
npm WARN [email protected] requires a peer of [email protected]>=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. 

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

回答

0

看起来像是npm在/Users/IBricchi/package.json中找不到package.json。可能你错误​​地从主目录运行npm install。您应该从项目根目录运行npm install