Skip to content
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 WARN checkPermissions Missing write access to /usr/local/lib/node_modules #3

Closed
divined opened this issue Feb 28, 2019 · 6 comments

Comments

@divined
Copy link

divined commented Feb 28, 2019

command: sh -c 'npm install && npm install -g bower && bower install && npm install -g grunt && grunt'
I need bower and grunt in my project, but i get:
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

@csandanov
Copy link
Member

There's no point to install something globally, just skip -g flag. Also, you probably need wodby/node image, which is a generic node image.

@divined
Copy link
Author

divined commented Mar 1, 2019

grunt and bower don't work without global installation ((
// -> Local Npm module "grunt-cli" not found. Is it installed?
wodby/node - doesn't have python ((

@divined
Copy link
Author

divined commented Mar 1, 2019

Node.js have a lot of packages which must be installed globally, and will not work without it!!

@csandanov
Copy link
Member

then just access the container as root

@divined
Copy link
Author

divined commented Mar 5, 2019

it is not a right solution, then all files created by grunt become unavailable by local user

csandanov added a commit to wodby/node that referenced this issue Mar 12, 2019
@csandanov
Copy link
Member

You're right, I've released wodby/node 0.11.2 with the changed global npm directory to resolve permissions issue, please let me know if that helped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants