Deepen
Deepen

Reputation: 23

Heroku installation error

I have been trying to make heroku work on my mac. I have installed Heroku-Toolbelt already. But when I run "heroku login" on zsh console, I get this error:

$ 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)...

Upvotes: 2

Views: 1831

Answers (2)

Jerome Provensal
Jerome Provensal

Reputation: 1057

Here's what I did to fix it.

I checked where node 5.9.1 was installed on my system (Mac El Capitan):

  % which node
  ~/.nvm/versions/node/v5.9.1 

Then I copied the whole thing under ~/.heroku and changed the name of the directory:

cp -r ~/.nvm/versions/node/v5.9.1 ~/.heroku
mv ~/.heroku/v5.9.1 ~/.heroku/node-v5.9.1-darwin-x64 

That did the trick for me and hopefully it will help someone else too since it took me a long time to figure it out.

Upvotes: 1

Ransom Briggs
Ransom Briggs

Reputation: 3085

I just shipped a fix for this, could you please heroku update and try again?

Upvotes: 7

Related Questions