Uncategorized Archive

Permission denied when installing npm modules in OSX

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules Solution : https://stackoverflow.com/questions/47252451/permission-denied-when-installing-npm-modules-in-osx Option 1: Change the permission to npm’s default directory Find the path to npm’s directory: npm config get prefix For many systems, this will be /usr/local WARNING: If the displayed path is just /usr, switch to Option 2 or you will mess up your permissions. Change the owner of npm’s directories to the name of the current user …