-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create user data directory: /nonexistent/snap/node/1889: Permission denied #586
Comments
That's happened because you install NodeJs using Snap package from Snap Store, which is had different permission with packages are installed from APT You can uninstall/remove currently installation, after that you should re-install using APT, follow instruction from https://github.com/nodesource/distributions#debinstall |
Try use option --scripts-prepend-node-path to run npm command |
The steps here fixed my permission issues |
@brunohonda thank you! That's worked for me. |
@HafizKurniaAji Node is installed with Still, this doesn't make clear why the original error appear. Does |
It solved my problem. |
If using the snap, it could also be related to nodejs/node#37982 and https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753 |
Solved here, but idk exactly what this is 👀 |
|
Run following commands.. It worked for me
|
@Yog4Prog yes, that's node package from the archives. The issue is likely because of the node snap, see my previous comment:
Many people solved similar issues also by following Option 2 described here: https://npm.github.io/installation-setup-docs/installing/a-note-on-permissions.html |
This worked perfectly thanks |
I was trying to
sudo npm install -g polymer-cli
, when suddenly,wd
tried to create/nonexistent/snap/node/1889
. I don't really know what's happening, so I'm reporting it here.The text was updated successfully, but these errors were encountered: