当前位置:网站首页>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
边栏推荐
猜你喜欢

SLIM: Sparse Linear Methods (TopN推荐)

torch.optim.Adam() 函数用法

Navisworks切换语言

Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法

大批程序员可能面临被劝退!

华为云数据治理生产线DataArts,让“数据‘慧’说话”

LeetCode167:有序数组两数之和

Mysql进阶优化篇01——四万字详解数据库性能分析工具(深入、全面、详细,收藏备用)

你是这样的volatile,出乎意料

云厂商做生态需要“真连接、真赋能”,用“技术+真金实银”发展伙伴
随机推荐
huato hot update environment construction (DLL method hot update C# code)
What does a good resume look like in the eyes of a big factory interviewer?
万华化学精细化工创新产品大会
全球架构师峰会
说几个大厂分库分表的那点破事。
Mirror stand to collect
有没有并发系统设计的经验,我该怎么说?
bert-base调试心得
How does the new retail saas applet explore the way to break the digital store?
SLIM: Sparse Linear Methods (TopN推荐)
安全业务收入增速超70% 三六零筑牢数字安全龙头
Test Management and Specification
OpenCV形状检测
MySQL详细学习教程(建议收藏)
真正懂经营管理的CIO具备哪些特质
链表Oj练习题 纯C语言
JVM学习----垃圾回收
Discuz magazine/news report template (jeavi_line) UTF8-GBK template
DLCM - 基于列表上下文信息的重排序模型
crontab报错,但本地执行正常