cli icon indicating copy to clipboard operation
cli copied to clipboard

heroku login is not a heroku command how can i solve it ?

Open loaiabdalslam opened this issue 7 years ago • 59 comments

Do you want to request a feature or report a bug?

i have this error error : heroku login is not a heroku command how can i solve it ?

What is the current behavior?

i cant make my first heroku windows64 8

What is the expected behavior?

7.0.9 windows 8 64 bit

loaiabdalslam avatar May 19 '18 17:05 loaiabdalslam

You're probably using an old version or the deprecated package 'heroku-cli'. The new one is just called 'heroku' Uninstall that by npm uninstall -g heroku-cli Then install the new package npm i -g heroku

mochki avatar Jun 05 '18 15:06 mochki

unbelievable I spend whole morning trying to install heroku with the official instruction, it failed in every way, this simple word: npm i -g heroku saved my ass. Thanks!

yangmars88 avatar Sep 07 '18 15:09 yangmars88

Thanks, it worked!

gghgaby avatar Sep 26 '18 16:09 gghgaby

fall victim for heroku instruction of installing it with brew, npm was the way to go,

jimmywarting avatar Sep 28 '18 20:09 jimmywarting

It's probably a PATH issue. This is likely happening because the old ruby CLI is installed. Using npm only worked because that uses an earlier PATH directory.

rm $(which heroku) would fix this issue and allow it to use a new install. It may need to be run multiple times.

jdx avatar Sep 28 '18 20:09 jdx

thanks

saladinjake avatar Dec 12 '18 07:12 saladinjake

Thanks, it worked!

wakidur avatar Jan 02 '19 08:01 wakidur

I did this

Uninstall that by npm uninstall -g heroku-cli Then install the new package npm i -g heroku

But when I tried to run heroku it said

deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access '/usr/local/lib/node_modules'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

ashokvas avatar Jan 19 '19 17:01 ashokvas

If you are still having issues, I recommend that you uninstall heroku and download the installer from their site: https://devcenter.heroku.com/articles/heroku-cli#download-and-install. This worked for me

Nanared1 avatar Jan 20 '19 01:01 Nanared1

Thanks for the advice

But I am quite new to this and just wanted to know about how to unistall heroku.

What code do I use?

Also it seems that my GIT does not have permissions?

Awaiting your reply

Regards

Ashok

On Sun, Jan 20, 2019 at 7:02 AM Nana Abekah [email protected] wrote:

If you are still having issues, I recommend that you uninstall heroku and download the installer from their site: https://devcenter.heroku.com/articles/heroku-cli#download-and-install. This worked for me

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/heroku/cli/issues/855#issuecomment-455829629, or mute the thread https://github.com/notifications/unsubscribe-auth/AYL-DhmcN2wt093z8NZlKbJTKT3rsP0Rks5vE8cjgaJpZM4UFx57 .

ashokvas avatar Jan 20 '19 05:01 ashokvas

Thanks for the advice

But I am quite new to this and just wanted to know about how to unistall heroku.

What code do I use?

Also it seems that my GIT does not have permissions?

Awaiting your reply

Regards

ashokvas avatar Jan 20 '19 05:01 ashokvas

I just tried to unistall heroku by running this command ( I am using a Macbook) rm -rf /usr/local/heroku /usr/local/lib/heroku /usr/local/bin/heroku ~/.local/share/heroku ~/Library/Caches/heroku

It said permissions denied How do I set permissions?

ashokvas avatar Jan 20 '19 05:01 ashokvas

I tried to run $ git config --list

It says

-bash: $: command not found

Seems like there is a problem with my GIT installation

I installed it using the Mac installer

Anyone understand what is the problem?

ashokvas avatar Jan 20 '19 06:01 ashokvas

To uninstall Heroku, use " npm uninstall -g heroku "

Nanared1 avatar Jan 20 '19 10:01 Nanared1

I just ran the command and I got the response

"up to date in 0.705s"

It seems to have run successfully

ashokvas avatar Jan 20 '19 10:01 ashokvas

I ran the installer for heroku and it has installed succefully

I ran the following Apples-MacBook-Pro:~ Apple$ heroku --version heroku/7.19.4 darwin-x64 node-v11.3.0

ashokvas avatar Jan 20 '19 10:01 ashokvas

I tried to login with heroku

Apples-MacBook-Pro:~ Apple$ $ heroku login -bash: $: command not found

NO luck

ashokvas avatar Jan 20 '19 10:01 ashokvas

Oh, just do " heroku login "

Nanared1 avatar Jan 20 '19 10:01 Nanared1

Apples-MacBook-Pro:~ Apple$ heroku login heroku: Press any key to open up the browser to login or q to exit:

ashokvas avatar Jan 20 '19 10:01 ashokvas

Logging in... done Logged in as [email protected] Apples-MacBook-Pro:~ Apple$

THanks a lot

ashokvas avatar Jan 20 '19 10:01 ashokvas

will I remain logged in once I close my macbook ? or do I have to login again?

ashokvas avatar Jan 20 '19 11:01 ashokvas

I am not sure about that

Nanared1 avatar Jan 20 '19 11:01 Nanared1

Where to download the heroku toolbet from? I cant find it on the Dev center?

ashokvas avatar Jan 20 '19 11:01 ashokvas

Am not sure or may have not used toolbelt before. It may have downloaded with the installer. Regardless, I was able to deploy on heroku with just the installer

Nanared1 avatar Jan 20 '19 11:01 Nanared1

I did this

Uninstall that by npm uninstall -g heroku-cli Then install the new package npm i -g heroku

But when I tried to run heroku it said

deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access '/usr/local/lib/node_modules'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

Try to use this command : brew tap heroku/brew && brew install heroku For me it is working now.

ncuti avatar Apr 03 '19 11:04 ncuti

And I See this: Any help over here

$ heroku login heroku: Press any key to open up the browser to login or q to exit: Error: self signed certificate in certificate chain

riteshkonduru avatar Jul 29 '19 06:07 riteshkonduru

I did this Uninstall that by npm uninstall -g heroku-cli Then install the new package npm i -g heroku But when I tried to run heroku it said deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access '/usr/local/lib/node_modules'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

Try to use this command : brew tap heroku/brew && brew install heroku For me it is working now.

use sudo snap install --classic heroku

frankkode avatar Aug 13 '19 22:08 frankkode

then use $ heroku login -i

frankkode avatar Aug 13 '19 23:08 frankkode

thanks mkdorff it worked for me!!!

sunnyDev1161 avatar Sep 18 '19 23:09 sunnyDev1161

thanks hihi

aritri12 avatar Oct 08 '19 01:10 aritri12