无法 运行 heroku-cli 命令 - npm 问题
Unable to run heroku-cli commands - issues with npm
在 Mac OS X Yosemite 上尝试 运行 heroku fork
时,我突然 运行 陷入严重错误使 CLI 变得无用。这个问题以前没有发生过,我相信 CLI 可能已经自我更新并开始引起问题。
~ ☽ heroku fork -a oldapp newapp
Installing plugin heroku-fork... npm ERR! Darwin 14.0.0
npm ERR! argv "/Users/Me/.heroku/iojs-v2.0.0-darwin-x64/bin/iojs" "/Users/JJ/.heroku/iojs-v2.0.0-darwin-x64/lib/node_modules/npm/cli.js" "install" "heroku-fork"
npm ERR! node v2.0.0
npm ERR! npm v2.9.0
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: heroku-cli-util@'>=1.9.0 <2.0.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["1.0.0","1.0.1","1.1.0","1.2.0","1.3.0","1.4.0","1.5.0","1.7.0","1.8.0","1.8.1"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'heroku-fork'
npm ERR! notarget
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Me/.heroku/npm-debug.log
ERROR: exit status 1
Usage: heroku COMMAND [--app APP] [command-specific-options]
Help topics, type "heroku help TOPIC" for more details:
heroku version # print the version
heroku plugins # manage plugins
heroku update # update heroku-cli
我尝试通过 homebrew、官方安装程序甚至 rubygem 删除并重新安装 heroku cli。由于该错误似乎表明存在 npm 问题,因此我更新了 npm 和我所有的 npm 包,甚至能够明确地 运行 npm install -g heroku-cli-util@1.10.0
但是 none 有任何不同。
出了什么问题 here/how 我可以解决这个问题吗?这对我来说是个关键问题。
我认为缓存不知何故卡住了,请尝试删除 ~/.heroku
然后重试。
编辑:事实证明这是 Heroku 私有 npm 服务器上的缓存问题。
在 Mac OS X Yosemite 上尝试 运行 heroku fork
时,我突然 运行 陷入严重错误使 CLI 变得无用。这个问题以前没有发生过,我相信 CLI 可能已经自我更新并开始引起问题。
~ ☽ heroku fork -a oldapp newapp
Installing plugin heroku-fork... npm ERR! Darwin 14.0.0
npm ERR! argv "/Users/Me/.heroku/iojs-v2.0.0-darwin-x64/bin/iojs" "/Users/JJ/.heroku/iojs-v2.0.0-darwin-x64/lib/node_modules/npm/cli.js" "install" "heroku-fork"
npm ERR! node v2.0.0
npm ERR! npm v2.9.0
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: heroku-cli-util@'>=1.9.0 <2.0.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["1.0.0","1.0.1","1.1.0","1.2.0","1.3.0","1.4.0","1.5.0","1.7.0","1.8.0","1.8.1"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'heroku-fork'
npm ERR! notarget
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Me/.heroku/npm-debug.log
ERROR: exit status 1
Usage: heroku COMMAND [--app APP] [command-specific-options]
Help topics, type "heroku help TOPIC" for more details:
heroku version # print the version
heroku plugins # manage plugins
heroku update # update heroku-cli
我尝试通过 homebrew、官方安装程序甚至 rubygem 删除并重新安装 heroku cli。由于该错误似乎表明存在 npm 问题,因此我更新了 npm 和我所有的 npm 包,甚至能够明确地 运行 npm install -g heroku-cli-util@1.10.0
但是 none 有任何不同。
出了什么问题 here/how 我可以解决这个问题吗?这对我来说是个关键问题。
我认为缓存不知何故卡住了,请尝试删除 ~/.heroku
然后重试。
编辑:事实证明这是 Heroku 私有 npm 服务器上的缓存问题。