What you need to do to resolve this problem is:
- Step 1: Find the path to npm's directory:
npm config get prefix
For many systems, this will be /usr/local.
For many systems, this will be /usr/local.
- Step 2: Change the owner of npm's directories to the name of the current user (your username):
This changes the permissions of the sub-folders used by npm and some other tools (/lib/node_modules, bin, and share).
No comments:
Post a Comment