node.js - Heroku 安装错误

标签 node.js macos heroku heroku-toolbelt

我一直在尝试让 heroku 在我的 mac 上运行。我已经安装了 Heroku-Toolbelt。但是当我在 zsh 控制台上运行“heroku login”时,我得到了这个错误:

$ heroku login
heroku-cli: Installing core plugins...
 ▸    npm ERR! Darwin 15.3.0
 ▸    npm ERR! argv "/Users/Deepen/.heroku/node-v5.4.1-darwin-x64/bin/node"  
"/Users/Deepen/.heroku/node-v5.4.1-darwin-x64/lib/node_modules/npm/cli.js"   
"remove" "heroku-apps" "heroku-cli-addons" "heroku-fork" "heroku-git" 
"heroku-local" "heroku-run" "heroku-spaces" "heroku-status"
 ▸    npm ERR! node v5.4.1
 ▸    npm ERR! npm  v3.3.10
 ▸    npm ERR! code MODULE_NOT_FOUND
 ▸
 ▸    npm ERR! Cannot find module 'npm-autoinit/autoinit'
 ▸    npm ERR!
 ▸    npm ERR! If you need help, you may report this error at:
 ▸    npm ERR!     <https://github.com/npm/npm/issues>
 ▸    npm WARN ENOENT ENOENT: no such file or directory, open '/Users/Deepen/.heroku/package.json'
 ▸    npm WARN EPACKAGEJSON .heroku No description
 ▸    npm WARN EPACKAGEJSON .heroku No repository field.
 ▸    npm WARN EPACKAGEJSON .heroku No README data
 ▸    npm WARN EPACKAGEJSON .heroku No license field.
 ▸    npm ERR! Darwin 15.3.0
 ▸    npm ERR! argv "/Users/Deepen/.heroku/node-v5.4.1-darwin-x64/bin/node"   "/Users/Deepen/.heroku/node-v5.4.1-darwin-x64/lib/node_modules/npm/cli.js" "remove" "heroku-apps" "heroku-cli-addons" "heroku-fork" "heroku-git" "heroku-local" "heroku-run" "heroku-spaces" "heroku-status"
 ▸    npm ERR! node v5.4.1
 ▸    npm ERR! npm  v3.3.10
 ▸
 ▸    npm ERR! Callback called more than once.
 ▸    npm ERR!
 ▸    npm ERR! If you need help, you may report this error at:
  ▸    npm ERR!     
 ▸
 ▸    npm ERR! Please include the following file with any support request:
 ▸    npm ERR!     /Users/Deepen/.heroku/npm-debug.log
▸    exit status 1
heroku-cli: Installing core plugins (retrying)...

最佳答案

我刚刚发布了一个修复程序,请你 heroku update 然后再试一次好吗?

关于node.js - Heroku 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35186318/

相关文章:

node.js - 错误: Cannot find module './proto' on Heroku

django - Heroku django 应用程序创建 super 用户

node.js - 在 Jade 中使用 HTML 是否被认为是不好的做法?

javascript - 如何有条件地使用带有 ES6 样式导入的内置 Node.js 或浏览器 API 方法?

Mac OS 上 Intellij Idea 和 STS 中的 Spring Initializr 错误

objective-c - 创建一个数组项,其属性依赖于数组本身的聚合函数

ruby-on-rails - 为什么我的 js+css 在 Rails + Heroku 的生产环境中没有被压缩?

javascript - 与 gmail 和 node.js 的 POP3 对话

node.js - Node Js 链接响应

c++ - Xcode 中的清屏