Below you will find pages that utilize the taxonomy term “npm”
npm install -g without sudo
July 9, 2020
Missing write access to /usr/local/lib/node_modules is not write permission, npm official solution is to create a new folder with permissions, install npm package in this new folder. This method does not apply to Microsoft Windows system. Create a folder in the user’s root directory (the name does not have to be .npm-global, you can do it yourself): mkdir ~/.npm-global Set the installation path of the npm global package: npm config set prefix '~/.