i have this error
error : heroku login is not a heroku command
how can i solve it ?
i cant make my first heroku windows64 8
7.0.9 windows 8 64 bit
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
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!
Thanks, it worked!
fall victim for heroku instruction of installing it with brew, npm was the way to go,
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.
thanks
Thanks, it worked!
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).
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
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 notifications@github.com
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
.
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
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?
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?
To uninstall Heroku, use " npm uninstall -g heroku "
I just ran the command and I got the response
"up to date in 0.705s"
It seems to have run successfully
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
I tried to login with heroku
Apples-MacBook-Pro:~ Apple$ $ heroku login
-bash: $: command not found
NO luck
Oh, just do " heroku login "
Apples-MacBook-Pro:~ Apple$ heroku login
heroku: Press any key to open up the browser to login or q to exit:
Logging in... done
Logged in as [email protected]
Apples-MacBook-Pro:~ Apple$
THanks a lot
will I remain logged in once I close my macbook ? or do I have to login again?
I am not sure about that
Where to download the heroku toolbet from? I cant find it on the Dev center?
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
I did this
Uninstall that by npm uninstall -g heroku-cli
Then install the new package npm i -g herokuBut 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.
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
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
then use $ heroku login -i
thanks mkdorff it worked for me!!!
thanks hihi
You're probably using an old version or the deprecated package 'heroku-cli'. The new one is just called 'heroku'
Uninstall that bynpm uninstall -g heroku-cli
Then install the new packagenpm i -g heroku
Thank you SO MUCH!! I've been trying to figure it out all morning and I was about to give up when I found this issue. You saved my website!
do not uninstall. thats a huge process. just write the following command.
heroku login --interactive or heroku login -i
heruko : The term 'heruko' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
How to fix this?
Thank you
heruko : The term 'heruko' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
- heruko login
<ul> <li>CategoryInfo : ObjectNotFound: (heruko:String) [], CommandNotFoundExc<br /> eption</li> <li>FullyQualifiedErrorId : CommandNotFoundException<br />
How to fix this?
Thank you
You might want to try spelling it "heroku", not "heruko". Hope that helps!
Thanks a lot
heroku : The term 'heroku' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:1
This is my error in Visual Studio code terminal
You're probably using an old version or the deprecated package 'heroku-cli'. The new one is just called 'heroku'
Uninstall that bynpm uninstall -g heroku-cli
Then install the new packagenpm i -g heroku
Thanks a lot! It worked for me too
thanks, it's working. awesome
heroku : The term 'heroku' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:1
- heroku login
<ul> <li>CategoryInfo : ObjectNotFound: (heroku:String) [], CommandNotFoundException</li> <li>FullyQualifiedErrorId : CommandNotFoundException<br />
This is my error in Visual Studio code terminal
me too !
I was trying to deploy my web on heroku , but before running command "heroku login " in hyper terminal , i accidentally run "git add . ". showing me like this .
and now if do again the "heroku login ".
error : bash : heroku : command not found

If anybody are unable to use heroku cli in vscode terminal (Windows10)...install
https://marketplace.visualstudio.com/items?itemName=pkosta2005.heroku-command
restart vscode by closing & reopening it.
heroku login -i
This worked for me. Thank you
Worked! Thank You .
You're probably using an old version or the deprecated package 'heroku-cli'. The new one is just called 'heroku'
Uninstall that bynpm uninstall -g heroku-cli
Then install the new packagenpm i -g heroku
i have the same problem , but i am installing from heroku website
It worked!! you are my saviour. THanks a loT!
Most helpful comment
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-cliThen install the new package
npm i -g heroku