首页  >  问答  >  正文

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

C:WINDOWSsystem32>npm install -g express
npm ERR! tar.unpack error reading C:WINDOWSsystem32express
npm ERR! addLocal Could not install C:WINDOWSsystem32express
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "express"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9

npm ERR! 0-byte tarball
npm ERR! Please run npm cache clean
npm 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 -g
npm ERR! tar.unpack error reading C:WINDOWSsystem32express
npm ERR! addLocal Could not install C:WINDOWSsystem32express
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "express" "-g"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9

npm ERR! 0-byte tarball
npm ERR! Please run npm cache clean
npm 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:请输入代码

怪我咯怪我咯2761 天前1105

全部回复(1)我来回复

  • PHP中文网

    PHP中文网2017-04-17 14:51:24

    npm ERR! Please run npm cache clean

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

    回复
    0
  • 取消回复