2017-03-03 64 views
0

我一直在嘗試幾個小時來現在安裝,我開始認爲這可能是節點模塊的問題? 我試過更新節點,重新安裝節點,更新涼亭,使用不同的shell和wifi網絡,在本地和全球安裝它。問題安裝聚合物cli

其他建議?

命令:NPM安裝-g聚合物CLI

npm ERR! enoent ENOENT: no such file or directory, scandir 'C:\Users\mb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-polymerelements-test-fixture-git-8142662e\config' 
npm ERR! enoent ENOENT: no such file or directory, scandir 'C:\Users\mb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-polymerelements-test-fixture-git-8142662e\config' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 
npm verb exit [ -4058, true ] 

回答

0

如果你是在Windows PC上確保您正在運行控制檯(終端)以管理員身份。如果使用Mac OS或Linux,則需要使用sudo運行npm命令。

+0

僅供參考,如果您已將其作爲非root用戶安裝,則不需要將'npm'作爲sudo運行。問題中顯示的錯誤似乎與權限無關。 – tony19

+0

在Windows上,您必須以npm的「管理員」身份運行終端以全局安裝項目「-g」標誌。 –