我在 Ubuntu x64 上使用 Heroku Toolbelt 更新时遇到了问题。
无论我尝试运行哪个 Heroku 命令,Heroku Toolbelt 都会尝试更新自己,但每次更新都失败并输出以下内容:
$ heroku
heroku-cli: Installing Toolbelt v4... done
For more information on Toolbelt v4: https://github.com/heroku/heroku-cli
heroku-cli: Adding dependencies... done
heroku-cli: Installing core plugins (retrying)...
▸ Error reading plugin: heroku-pipelines
▸ exit status 1
▸ module.js:327
▸ throw err;
▸ ^
▸
▸ Error: Cannot find module 'heroku-pipelines'
▸ at Function.Module._resolveFilename (module.js:325:15)
▸ at Function.Module._load (module.js:276:25)
▸ at Module.require (module.js:353:17)
▸ at require (internal/module.js:12:17)
▸ at [eval]:2:15
▸ at Object.exports.runInThisContext (vm.js:54:17)
▸ at Object.<anonymous> ([eval]-wrapper:6:22)
▸ at Module._compile (module.js:397:26)
▸ at node.js:611:27
▸ at nextTickCallbackWith0Args (node.js:452:9)
heroku-cli: Installing core plugins (retrying)...
▸ Error reading plugin: heroku-pipelines
▸ exit status 1
▸ module.js:327
▸ throw err;
▸ ^
▸
▸ Error: Cannot find module 'heroku-pipelines'
▸ at Function.Module._resolveFilename (module.js:325:15)
▸ at Function.Module._load (module.js:276:25)
▸ at Module.require (module.js:353:17)
▸ at require (internal/module.js:12:17)
▸ at [eval]:2:15
▸ at Object.exports.runInThisContext (vm.js:54:17)
▸ at Object.<anonymous> ([eval]-wrapper:6:22)
▸ at Module._compile (module.js:397:26)
▸ at node.js:611:27
▸ at nextTickCallbackWith0Args (node.js:452:9)
! error getting commands pid 8898 exit 1
我已经删除了我的 ~/.heroku 文件夹,也执行了 apt-get remove --purge heroku* 命令,但仍然失败。
我对 node.js 并不是很熟悉,不知道这是什么问题,甚至不确定是否是 node.js 的问题... 有人知道吗?谢谢!