当前位置:网站首页>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/cli
I 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
边栏推荐
- 为人处世之道,与君共勉!
- DTSE Tech Talk丨Phase 2: 1 hour in-depth interpretation of SaaS application system design
- MySql统计函数COUNT详解
- 将 APACHE 日志解析到 SQL 数据库中
- leetcode:1488. 避免洪水泛滥【二分 + 贪心】
- The way of life, share with you!
- Invalid or corrupt jarfile xxx.jar
- 疫情之下的裁员浪潮,7点建议帮你斩获心仪offer
- Is it reliable to work full-time in self-media?
- Login Module Debugging - Getting Started with Software Debugging
猜你喜欢
PHP留言反馈管理系统源码
OpenCV形状检测
592. Fraction Addition and Subtraction
[HarekazeCTF2019] Avatar Uploader 1
Paper reading (63): Get To The Point: Summarization with Pointer-Generator Networks
Discuz magazine/news report template (jeavi_line) UTF8-GBK template
[Geek Challenge 2020] Roamphp1-Welcome
华为云数据治理生产线DataArts,让“数据‘慧’说话”
.NET 6.0中使用Identity框架实现JWT身份认证与授权
MySQL 8.0.29 解压版安装教程(亲测有效)
随机推荐
MySQL详细学习教程(建议收藏)
ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
crontab报错,但本地执行正常
微信小程序picker滚动选择器使用详解
SwiftUI SQLite教程之带有历史的搜索栏List App (教程含完整代码)
huato 热更新环境搭建(DLL方式热更新C#代码)
登录模块调试-软件调试入门
No qualifying bean of type问题解决
onenote use
C# 跨程序传图(共享内存块传图)跨exe传图
华为无线设备配置Mesh业务
华为云数据治理生产线DataArts,让“数据‘慧’说话”
Chapter 5 Advanced SQL Processing
Is it reliable to work full-time in self-media?
[HarekazeCTF2019] Avatar Uploader 1
将 APACHE 日志解析到 SQL 数据库中
Mongoose模块
[MRCTF2020]Ezaudit
CMake库搜索函数居然不搜索LD_LIBRARY_PATH
torch.optim.Adam() function usage