2017-01-29 9 views
0

このタイプのエラーを解決する方法はありますか?angular-cliがWindows 7にインストールされていません

C:\>npm install -g angular-cli 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\ 
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli" 
npm ERR! node v7.4.0 
npm ERR! npm v4.0.5 

npm ERR! Cannot read property 'path' of null 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\ 
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli" 
npm ERR! node v7.4.0 
npm ERR! npm v4.0.5 
npm ERR! code ECONNRESET 

npm ERR! network socket hang up 
npm ERR! network This is most likely not a problem with npm itself 
npm ERR! network and is related to network connectivity. 
npm ERR! network In most cases you are behind a proxy or have bad network setti 
gs. 
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the 
npm ERR! network 'proxy' config is set properly. See: 'npm help config' 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\ 
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "angular-cli" 
npm ERR! node v7.4.0 
npm ERR! npm v4.0.5 
npm ERR! path C:\npm-debug.log.928650742 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall open 

npm ERR! Error: EPERM: operation not permitted, open 'C:\npm-debug.log.92865074 
' 
npm ERR! { Error: EPERM: operation not permitted, open 'C:\npm-debug.log.92865 
742' 
npm ERR! errno: -4048, 
npm ERR! code: 'EPERM', 
npm ERR! syscall: 'open', 
npm ERR! path: 'C:\\npm-debug.log.928650742' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\npm-debug.log 

C:\> 

答えて

0

私は同様の問題があったと私はノードを削除し、最新バージョンをインストールすることによってそれを解決し、私もそのnpm cache clean

前に、ノードのキャッシュディレクトリをきれいに
関連する問題