-
Notifications
You must be signed in to change notification settings - Fork 30k
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
npm installing to global gives Error: ENOENT, No such file or directory #8545
Comments
This seems like an npm issue, if so could you raise an issue directly with npm (i.e. here)? If you think this is a node specific problem, feel free to reply on this thread. |
It's true that this is You should try running npm with
So, two possible workarounds:
|
@imyller You're right about the Running npm with
Why does using --unsafe-perm work? I'm I missing some basic configuration in the chroot environment that npm needs? Also, what does Thanks! |
It works because with that flag npm does not need to access As I said earlier, you can alternatively create dummy passwd/group files with appropriate system users. |
I'm running node/npm in a chroot on alpine linux.
I get the following error installing to global with the following command:
This works:
The text was updated successfully, but these errors were encountered: