首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法运行heroku-cli命令- npm的问题

无法运行heroku-cli命令- npm的问题
EN

Stack Overflow用户
提问于 2015-05-06 00:31:36
回答 1查看 596关注 0票数 0

当我试图在Mac上运行heroku fork时,我突然遇到了使CLI无用的关键错误。这个问题以前并没有发生,我相信CLI可能已经自我更新,并开始造成问题。

代码语言:javascript
复制
~ ☽  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,但这些都没有起到任何作用。

这里出了什么问题/我怎样才能解决这个问题?这对我来说是个关键问题。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-05-06 00:47:17

我认为缓存被卡住了,尝试删除~/.heroku,然后再试一次。

编辑:原来这是Heroku私有npm服务器上缓存的一个问题。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30065506

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档