node.js - nodejs安装npm install -g express老是出错

浏览:29日期:2022-10-08

问题描述

C:WINDOWSsystem32>npm install -g expressnpm ERR! tar.unpack error reading C:WINDOWSsystem32expressnpm ERR! addLocal Could not install C:WINDOWSsystem32expressnpm ERR! Windows_NT 10.0.10586npm ERR! argv 'C:Program Filesnodejsnode.exe' 'C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js' 'install' '-g' 'express'npm ERR! node v4.5.0npm ERR! npm v2.15.9

npm ERR! 0-byte tarballnpm ERR! Please run npm cache cleannpm ERR!npm ERR! If you need help, you may report this error at:npm ERR! https://github.com/npm/npm/is...

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

C:WINDOWSsystem32>npm install express -gnpm ERR! tar.unpack error reading C:WINDOWSsystem32expressnpm ERR! addLocal Could not install C:WINDOWSsystem32expressnpm ERR! Windows_NT 10.0.10586npm ERR! argv 'C:Program Filesnodejsnode.exe' 'C:Program Filesnodejsnode_modulesnpmbinnpm-cli.js' 'install' 'express' '-g'npm ERR! node v4.5.0npm ERR! npm v2.15.9

npm ERR! 0-byte tarballnpm ERR! Please run npm cache cleannpm ERR!npm ERR! If you need help, you may report this error at:npm ERR! https://github.com/npm/npm/is...

npm ERR! Please include the following file with any support request:请输入代码

问题解答

回答1:

npm ERR! Please run npm cache clean

你有运行过吗?结果如何?运行这句再安装能不能成功?

相关文章: