heroku login is not a heroku command how can i solve it ?
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
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 [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 .
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:
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 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.
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