tar.unpack错误在Atom上安装脚本包

时间:2016-05-20 14:51:20

标签: node.js npm atom-editor

我正在尝试在Atom上安装脚本包但它会出现以下错误:

      vendor-ef159bc….js:11 Error while processing route: account Unexpected token < in JSON at position 0 SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at ae.parseJSON (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:3:12644)
at W (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:1:15665)
at n (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:3:13996)
at XMLHttpRequest.<anonymous> (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:3:20168)`.

我也跑

npm ERR! tar.unpack error reading /tmp/d-116420-6290-1xjcgjb/package.tgz
npm ERR! addLocal Could not install /tmp/d-116420-6290-1xjcgjb/package.tgz
npm ERR! Linux 4.4.0-22-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/nobodyu/.atom/.apm/.apmrc" "--userconfig" "/home/nobodyu/.atom/.apmrc" "install" "/tmp/d-116420-6290-1xjcgjb/package.tgz" "--target=0.36.8" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3

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/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-116420-6290-1gbk138/npm-debug.log

npm cache clean

但它仍然给我同样的错误

如何成功安装此软件包?

1 个答案:

答案 0 :(得分:0)

https://github.com/atom/atom/issues/11798如果您正在搜索解决方案,请点击此处。

相关问题