当前位置:网站首页>Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
Error EPERM operation not permitted, mkdir 'Dsoftwarenodejsnode_cache_cacach Two solutions
2022-07-31 04:44:00 【sebeefe】
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 in 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/cliWhen I install the Vue.cli package, I get this error:
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 User's permissions, click OK to exit.

Let me introduce myself first. The editor graduated from 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
边栏推荐
猜你喜欢

From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)

MySQL数据库增删改查(基础操作命令详解)

C language from entry to such as soil, the data store

【线性神经网络】softmax回归

(8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class

Knowledge Distillation 7: Detailed Explanation of Knowledge Distillation Code
![[C language] General method of base conversion](/img/28/954af5f47a79ff02d3cc0792ac8586.jpg)
[C language] General method of base conversion

The third is the code to achieve

Lua,ILRuntime, HybridCLR(wolong)/huatuo热更新对比分析

npm、nrm两种方式查看源和切换镜像
随机推荐
exsl文件预览,word文件预览网页方法
ClickHouse:设置远程连接
binom二项分布,
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
Understanding of the presence of a large number of close_wait states
【线性神经网络】softmax回归
益智类游戏关卡设计:逆推法--巧解益智类游戏关卡设计
unity2d小游戏
(五)final、抽象类、接口、内部类
(四)递归、可变参数、访问修饰符、理解 main 方法、代码块
行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
open failed: EACCES (Permission denied)
Hand in hand to realize the picture preview plug-in (3)
XSS靶场(三)prompt to win
【debug锦集】Expected input batch_size (1) to match target batch_size (0)
npm、nrm两种方式查看源和切换镜像
Reinforcement learning: from entry to pit to shit
MySQL数据库备份
WPF WPF 】 【 the depth resolution of the template
Fusion Cloud Native, Empowering New Milestones | 2022 Open Atom Global Open Source Summit Cloud Native Sub-Forum Successfully Held