当前位置:网站首页>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/cli
When 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
边栏推荐
- WPF WPF 】 【 the depth resolution of the template
- Unity教程:URP渲染管线实战教程系列【1】
- Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
- Open Source Smart Future | 2022 OpenAtom Global Open Source Summit OpenAtom openEuler sub-forum was successfully held
- el-image tag doesn't work after binding click event
- Regarding the primary key id in the mysql8.0 database, when the id is inserted using replace to be 0, the actual id is automatically incremented after insertion, resulting in the solution to the repea
- Why don't you programmers make a living off your own projects?And have to work for someone else?
- 重磅 | 开放原子校源行活动正式启动
- 开放原子开源基金会秘书长孙文龙 | 凝心聚力,共拓开源
- ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
猜你喜欢
(5) final, abstract class, interface, inner class
exsl文件预览,word文件预览网页方法
强化学习:从入门到入坑再到拉屎
MySQL数据库备份
The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
Hand in hand to realize the picture preview plug-in (3)
Win10 CUDA CUDNN installation configuration (torch paddlepaddle)
ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost3306' (10061)Solution
Learning DAVID Database (1)
(8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class
随机推荐
Basic knowledge of mysql (2)
prompt.ml/15中<svg>标签使用解释
打造基于ILRuntime热更新的组件化开发
MATLAB/Simulink&&STM32CubeMX工具链完成基于模型的设计开发(MBD)(三)
Unity Fighter
visual studio 那些提高效率的快捷键,总结(不时更新)
Lua,ILRuntime, HybridCLR(wolong)/huatuo hot update comparative analysis
问题7:列表的拼接
(六)枚举、注解
MySQL基础操作
VScode+ESP32快速安装ESP-IDF插件
开源社区三十年 | 2022开放原子全球开源峰会开源社区三十年专题活动圆满召开
XSS shooting range (3) prompt to win
【wpf】wpf中的那些模板之深度解析
【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
input输入框展示两位小数之precision
MySQL based operations
el-image tag doesn't work after binding click event
Industry landing presents new progress | 2022 OpenAtom Global Open Source Summit OpenAtom OpenHarmony sub-forum was successfully held
MySQL数据库增删改查(基础操作命令详解)