当我试图在Mac上运行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我已经尝试删除和重新安装heroku cli通过:自制,官方安装程序,甚至红宝石。由于错误似乎表明存在npm问题,所以我更新了npm和所有npm包,甚至能够显式地运行npm install -g heroku-cli-util@1.10.0,但这些都没有起到任何作用。
这里出了什么问题/我怎样才能解决这个问题?这对我来说是个关键问题。
发布于 2015-05-06 00:47:17
我认为缓存被卡住了,尝试删除~/.heroku,然后再试一次。
编辑:原来这是Heroku私有npm服务器上缓存的一个问题。
https://stackoverflow.com/questions/30065506
复制相似问题