2016-07-07 264 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