当前位置:网站首页>Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
2022-07-30 17:11:00 【Programmer over time】
Table of Contents
Error: operation not permitted, mkdir 'D:software odejs ode_cache_cacach
The first: select administrator to run the command line
Second: Set users full control permission in the node installation directory
Error: operation not permitted, mkdir ‘D:software odejs ode_cache_cacach
After installing node on window, node-v and npm-v can be displayed normally, but an error is reported when running npminstall
For example, if you are running the following command
npm install -g @vue/cliI get this error when I install the Vue.cli package:
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:software odejs ode_cache_cacache
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:software odejs ode_cache_cacache'
npm ERR! [OperationalError: EPERM: operation not permitted, mkdir 'D:software odejs ode_cache_cacache'] {
npm ERR! cause: [Error: EPERM: operation not permitted, mkdir 'D:software odejs ode_cache_cacache'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path:'D:software odejs ode_cache_cacache'
npm ERR! },
npm ERR! isOperational: true,
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'D:software odejs ode_cache_cacache'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by youroperating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
Solution:
The first: select administrator to run the command line
1. Delete the .npmrc file in the C:Users{your user folder}/ directory, which is generally hidden. Remember to find the "hidden item" check mark in the view bar.

2. Find the command prompt application on the computer, select "Run as administrator" to open cmd, and re-enter the npm install -g @vue/cli command to install successfully


The second type: Set users user full control permission in the node installation directory
1. Find the node.js installation folder on the computer, right-click and select Properties, click Security, select Users, and click Edit

2. Check the "Full Control" permission check box under the User permission, click OK to exit.

Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢

bean的生命周期

swagger使用教程——快速使用swagger

Login Module Debugging - Getting Started with Software Debugging

Weka 3.8.6安装与Weka 3.8.6功能介绍

DTSE Tech Talk丨Phase 2: 1 hour in-depth interpretation of SaaS application system design
![[MRCTF2020]Ezaudit](/img/80/d4656abdff20703591ffdc3f5a5ebc.png)
[MRCTF2020]Ezaudit

真正懂经营管理的CIO具备哪些特质

You are a first-class loser, you become a first-class winner
![有效的括号字符串[贪心练习]](/img/1c/5cefb53bc4aba54dd79b0cc9b09b0d.png)
有效的括号字符串[贪心练习]

Explore CSAPP Experiment 2-bomb lab-Section 1
随机推荐
lotus 1.16.0 最小快照导出 导入
MySQL详细学习教程(建议收藏)
Google Cloud Spanner的实践经验
实现web实时消息推送的7种方案
torch.optim.Adam() function usage
onenote use
PHP message feedback management system source code
crontab报错,但本地执行正常
C# 跨程序传图(共享内存块传图)跨exe传图
打印1-100之间的奇数
Navisworks切换语言
阿里巴巴中国站获得1688商品分类 API
KDD 2020 | 深入浅出优势特征蒸馏在淘宝推荐中的应用
Login Module Debugging - Getting Started with Software Debugging
数据库的三大范式
How does the new retail saas applet explore the way to break the digital store?
Google earth engine如何实现我们时间列表的排列和选取
代码越写越乱?那是因为你没用责任链
Mongoose模块
第六章:决胜秋招