This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. First find the path to npm's directory | |
$ npm config get prefix | |
2. Change the owner of npm's directories to the name of the current user (your username!): | |
$ sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} |