-
Notifications
You must be signed in to change notification settings - Fork 183
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 install -g fails with permission error #132
Comments
Are you able to Otherwise, we may just have to downgrade the jsonpath library and open a bug there. |
I can and do install global packages all the time. Just ahead of this install, I globally installed "swagger-to-graphql," which is the point of this exercise; the files I'm converting need to be in Swagger v2 format, but they are currently in Swagger v1. It failed to work with sudo, giving the same permissions error as it did with full root access. However, while researching, I found a thread where the following syntax was explicated, and it installs just fine this way:
This works in Linux Slackware64-current. I'm off to the races. Obviously, it may not work for everyone on all architectures, so the jsonpath folks should probably be made aware of the issue. |
Same error here. I'm trying to install as root user so I shouldn't have any problem of permission. |
Hrm, I'm still unable to repro, also with npm@5.3.0 on ubuntu (14.04) Any other details you can think of that might help us reproduce/diagnose? In the meantime, |
|
I too have the same problem in Fedora node: Distro Details:
|
Same problem on Funtoo. Above solution worked fine. Updating the README with fixed command would be enough IMO. |
Added a note in the README pointing to this issue. I don't think we should encourage everyone to add |
tried with --unsave_perm and --allow_root (running from root) - same result |
|
it works for me :) sudo npm install -g artillery --unsafe-perm=true --allow-root |
sudo npm install -g artillery --unsafe-perm=true --allow-root |
worked for me as well |
Works on Ubuntu |
Works on ubuntu as well .. |
Works on Ubuntu |
Thanks a lot, it worked for me! |
worked for me on Mac as well |
What is the min node version need to install? |
what is the min node and npm version need to install |
Not worked for me on mac |
FWIW, |
|
Installation has failed for me twice, on machines with different architectures and node/npm versions.
I get the same error on each platform:
`# npm i -g api-spec-converter
/usr/local/bin/api-spec-converter -> /usr/local/lib/node_modules/api-spec-converter/bin/api-spec converter
2017-09-21T06_47_16_083Z-debugLog.txt
The text was updated successfully, but these errors were encountered: