heroku login give me EAACCESS:permission denied - heroku-toolbelt

I have installed heroku toolbelt but each time I do "heroku login" or any other heroku command like "heroku version" I get something like :
autoupdate:: 'EACCES': EACCES: permission denied, mkdir
▸ '/home/vanessa/.cache/heroku/update.lock.readers.lock'
▸ 'EACCES': EACCES: permission denied, open
▸ '/home/vanessa/.cache/heroku/plugins.json'
▸ 'EACCES': EACCES: permission denied, mkdir
▸ '/home/vanessa/.cache/heroku/update.lock.readers.lock'
I have deleted and reinstalled, I have also done sudo apt-get upgrade heroku to update the CLI, however I still get same results. My OS is Ubuntu Linux.

Check if the directory is owned by the user you're running heroku commands from:
ls -l /home/vanessa/.cache/heroku
If it's owned by something else like root, and assuming you are running heroku as the user "vanessa", try:
sudo chown -R vanessa:vanessa /home/vanessa/.cache/heroku

You don't have permission to access that file. Run rm -rf /home/vanessa/.cache/heroku and hopefully it will be recreated with the right permissions.

Follow steps:
Uninstall heroku cli
and install the latest version.
That worked for me

Related

permission denied : while installing django in windows

permission denied
I was trying to install Django using pip3 install django==2.0.2 on windows.
But I am getting "permission denied " error message.
But pip3 install django==2.0.2 --user is working, but "Django-admin" command is not being recognized.
Please help me out.
C:\Users\Hima>pip3 install django==2.0.2
fd = os.open(file, os.O_RDWR | os.O_CREAT | os.O_EXCL)
PermissionError: [Errno 13] Permission denied: 'c:\\program files (x86)\\python38-32\\Lib\\site-packages\\accesstest_deleteme_fishfingers_custard_gijd2m'
Your installation with --user argument works because --user makes pip install packages in your home directory instead of system directory, which doesn't require any special privileges. You have not enough privileges to install it to system dir.
If you are sure of what you are doing - run pip with administrative privileges but do remember that anyone can uploade libraries to pip and thus there is a risk of running malicious code.
Better way to go is to use a virtual environment

Could not install packages due to an EnvironmentError in ec2 server

i'm typing the following in my working amazon ec2 linux server. (with ENV activated)
pip install pillow
getting this error:
Could not install packages due to an EnvironmentError:
[Errno 13] Permission denied: '/home/ec2-user/env/lib64/python3.5/site-packages/Pillow-5.1.0.dist-info'.
Consider using the `--user` option or check the permissions.
if i use --user i get:
Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
Based on your answers, what happened is that you used sudo when you created the virtualenv so root owns it.
sudo chown ec2-user:ec2-user -R ~ec2-user/env will fix this and make ec2-user the owner of the directory (and subdirectories) again.

Error removing file /home/diba/Downloads/Postman/snapshot_blob.bin: Permission denied

I downloaded postman app on ubuntu 18.04 to test my api and in the installing process I ran into a problem, so I tried to delete the package which by the way I deleted the archive from my home directory using:
sudo rm -rf postman.tar.gz
but the main package can't be deleted and when I tried to move it to trash I ran into this error -->
Error removing file /home/aaaa/Downloads/Postman/snapshot_blob.bin:
Permission denied.
I have tried these commands below
sudo apt-get purge postman
sudo apt-get remove postman
sudo apt-get remove --auto-remove postman
but stil no luck!
Run as root. It has more privileges than sudo.

How do I install dataset on python not using pip or easy_install?

I'm trying to install data set on Ubuntu and when I use
pip install dataset
it gives me a long error message, and from what I could debug from it is that permission to the directory is denied. When I try
easy_install dataset
it says error: can't create or remove files in install directory because permission is denied Maybe my account doesn't have write access to this directory?
If you're receiving the error can't create or remove in install directory because permission is denied then you need to run your commands with sudo privileges
Try:
sudo pip install dataset
or
sudo easy_install dataset

On creating a new ember app i am getting bower handlebars error

Installed packages for tooling via npm.
EACCES, unlink '/home/tanan/.cache/bower/registry/bower.herokuapp.com/lookup/handlebars_b644d'
Error: EACCES
unlink '/home/tanan/.cache/bower/registry/bower.herokuapp.com/lookup/handlebars_b644d'
Unable to identify this particular error
Also if anybody knows how to install ember-cli as a notmarl user (not a root user)
When you installing did you use 'sudo' or run as the root user? For me the installer failed and I had not choice then I experienced the same issue.
Try and reset the permissions back from root to your user with these commands:
sudo chown -R <you>:staff ~/.cache
sudo chown -R <you>:staff ~/.npm
Assume you are running OS X, modify accordingly.