当前位置:网站首页>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
边栏推荐
- 【线性神经网络】softmax回归
- (6) Enumeration and annotation
- idea工程明明有依赖但是文件就是显示没有,Cannot resolve symbol ‘XXX‘
- 行业落地呈现新进展 | 2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛圆满召开
- Open Source Database Innovation in the Digital Economy Era | 2022 Open Atom Global Open Source Summit Database Sub-Forum Successfully Held
- Unity资源管理系列:Unity 框架如何做好资源管理
- Unity URP渲染管线摄像机核心机制剖析
- Exsl file preview, word file preview web page method
- mysql数据库安装(详细)
- 论治理与创新 | 2022开放原子全球开源峰会OpenAnolis分论坛圆满召开
猜你喜欢

Exsl file preview, word file preview web page method
![[R language] [3] apply, tapply, lapply, sapply, mapply and par function related parameters](/img/98/282d8d192f701ad33de48aeeb038b4.png)
[R language] [3] apply, tapply, lapply, sapply, mapply and par function related parameters

产学研用 共建开源人才生态 | 2022开放原子全球开源峰会教育分论坛圆满召开

C language confession code?

MATLAB/Simulink&&STM32CubeMX工具链完成基于模型的设计开发(MBD)(三)

HCIP第十天_BGP路由汇总实验

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

两个地址池r2负责管地址池r1负责管dhcp中继

Open Source Database Innovation in the Digital Economy Era | 2022 Open Atom Global Open Source Summit Database Sub-Forum Successfully Held

STM32HAL library modifies Hal_Delay to us-level delay
随机推荐
VScode+ESP32快速安装ESP-IDF插件
.NET-9.乱七八糟的理论笔记(概念,思想)
STM32HAL library modifies Hal_Delay to us-level delay
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
慧通编程第4关 - 魔法学院第6课
Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held
问题1:给你1-10的列表,实现列表输出,单数在左边,双数在右边。
MySQL数据库备份
From scratch, a mirror to the end, a pure system builds a grasscutter (Grasscutter)
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution
两个地址池r2负责管地址池r1负责管dhcp中继
MySQL修改root账号密码
Understanding of the presence of a large number of close_wait states
The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
open failed: EACCES (Permission denied)
Learning DAVID Database (1)
高等数学---第九章二重积分
手把手实现图片预览插件(三)
已解决:不小心卸载pip后(手动安装pip的两种方式)
ClickHouse: Setting up remote connections