Home  >  Q&A  >  body text

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 days ago1103

reply all(1)I'll reply

  • PHP中文网

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

    npm ERR! Please run npm cache clean

    Have you ever run it? What was the result? Can the installation be successful after running this sentence?

    reply
    0
  • Cancelreply