When installing modules with npm, you need to use administrator privileges. How can I do it once and for all?

tags: nodejs  npm  

When installing modules with npm, you need to use administrator privileges. How can I do it once and for all?

If you need to run as an administrator every time you use npm to install, it is very troublesome. This situation is mostly a problem of node installation, and the node program does not have permission to write. The error is as follows

You can change the permissions of the node folder you found

Find the nodejs folder right click to find the properties in the security add and modify permissions. The installation was successful again!

Can. The installation was successful again!

Intelligent Recommendation

"You do not have permission to enter the license key, please use the system administrator account to try again" when installing VMware

** "You do not have permission to enter the license key, please use the system administrator account to try again" when installing VMware ** Since the problem has been solved, the picture wi...

What should I do if the external link of the picture fails? Use the npm tool to download/replace all invalid external links at once

Preface About a month ago, the external link of Weibo pictures failed, and the Nuggets also lost their links due to hotlink issues.2019/06/06Decided to open anti-leech, The impact is:The personal blog...

When do I need to use ConcurrentHashMap and linkedHashMap?

First look at the basics Collection includes set map list set is not repeated The TreeSet internal elements are sorted and are not synchronized. HashSet internal data structure is a hash table, which ...

When do you use Ref and when do you need to Ref?

Articles directory Ref No Ref Ref "Beating my body, hurting her heart", use itrefEssence For example, if you click on the event to be bound to a tag, the event processing function must acces...

【VSCode】What do you need to configure when installing VSCode?

Official download link: Visual Studio Code - Code Editing. Redefinedhttps://code.visualstudio.com/After the download is completed, switch to the Chinese interface: Shift + Ctrl + P  Configure Lan...

More Recommendation

Mac: Administrator privileges are lost, what should I do?

background: Sometimes you delete the administrator or change the name of the folder, resulting in the loss of administrator privileges. Let's talk about it today, how to get back the admin rights. 1, ...

What should I do if I need to obtain administrator rights when deleting files? See this blog

Step 1: OpenAttributes——> Safety ——> advanced Step 2: Clickchange     Step 3: Clickadvanced   Step 4: ClickFind now  ——> Loca...

How many optical modules do you need in the data center?

The high-speed optical module market has experienced rapid growth since the end of 2016. Its core driving force is the upgrade and new construction requirements for 40G and 100G modules in overseas la...

When do you need to use a list of initialization?

The initialization list is used to initialize the data of the class. The member list is initialized in the constructor, followed by the colon of the constructor. Refer to the following example: [cpp] ...

When do you need to use a volatile keyword?

If you want everyone to see the volatile keyword, but you know when you need to use the volatile keyword? Look directly below the code: When this program is compiled, if the compiler discovery program...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top