This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8787|Reply: 1

npm tutorial (3): npm does not have permission to store global packages

[Copy link]
Posted on 12/13/2017 11:23:39 AM | | | |
When you try to install a package globally, you may get an EACCES error. This means that you do not have permission to write to the directory that npm uses to store global packages and commands.

Change npm's default directory to another directory.

Find the path to the npm directory:


Get the installation directory of the npm package globally

Set the global installation directory of the npm package



There is no permission to write to the directory where npm is used to store global packages and commands, which can be accessed on Linux servers, but generally not encountered on Windows servers.





Previous:npm tutorial (2): Installing and using npm
Next:Do report statistics and supplement the time method without data
Posted on 12/20/2017 6:11:53 PM |

The landlord's mobile phone program can also be written
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com