sinat_34375595
2017-09-20 09:22 阅读 1.6k

npm ERR! Buffer.alloc is not a function

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install' ]
2 info using npm@5.4.1
3 info using node@v4.4.3
4 verbose stack TypeError: Buffer.alloc is not a function
4 verbose stack at Object. (C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\pack.js:32:20)
4 verbose stack at Module._compile (module.js:409:26)
4 verbose stack at Object.Module._extensions..js (module.js:416:10)
4 verbose stack at Module.load (module.js:343:32)
4 verbose stack at Function.Module._load (module.js:300:12)
4 verbose stack at Module.require (module.js:353:17)
4 verbose stack at require (internal/module.js:12:17)
4 verbose stack at Object. (C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\create.js:6:14)
4 verbose stack at Module._compile (module.js:409:26)
4 verbose stack at Object.Module._extensions..js (module.js:416:10)
4 verbose stack at Module.load (module.js:343:32)
4 verbose stack at Function.Module._load (module.js:300:12)
4 verbose stack at Module.require (module.js:353:17)
4 verbose stack at require (internal/module.js:12:17)
4 verbose stack at Object. (C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\node_modules\tar\index.js:4:30)
4 verbose stack at Module._compile (module.js:409:26)
5 verbose cwd E:\vue-devtools-master\vue-devtools-master
6 verbose Windows_NT 6.1.7601
7 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
8 verbose node v4.4.3
9 verbose npm v5.4.1
10 error Buffer.alloc is not a function
11 verbose exit [ 1, true ]

这是对应的log日志
新手,这个问题怎么解决啊....

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

相关推荐