当前位置:网站首页>Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
2022-07-30 16:57:00 【程序员超时空】
目录
报错情况:operation not permitted, mkdir ‘D:software odejs ode_cache_cacach
报错情况:operation not permitted, mkdir ‘D:software odejs ode_cache_cacach
window安装node后,node-v,npm-v都能正常显示,但运行npminstall安装时报错
例如如果在运行如下命令
npm install -g @vue/cli
来安装Vue.cli包时出现这样的报错:
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 your operating 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.
解决办法:
第一种:选择管理员身份运行命令行
1.删除C:Users{你的用户文件夹}/目录中的.npmrc文件,一般为隐藏,记得在查看栏中找到“隐藏的项目”勾上。

2.电脑中搜到命令提示符应用,选择”以管理员身份运行“打开cmd,重新输入npm install -g @vue/cli命令即可安装成功


第二种:node安装目录下设置users用户完全控制权限
1.找到电脑中node.js的安装文件夹,右键选择属性,点击安全,选择Users用户,点击编辑

2.勾选User的权限下”完全控制“权限的允许对勾,点击确定,退出。

先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- .NET 6.0中使用Identity框架实现JWT身份认证与授权
- vivo announced to extend the product warranty period, the system launched a variety of functional services
- 2022-07-30 Androd 进入深度休眠后把WIFI给关掉,唤醒之后重新打开WIFI
- 第一次用debug查询,发现这个为空,是不是代表还没获得数据库的意思?求帮助。
- Invalid or corrupt jarfile xxx.jar
- 升级Win11后不喜欢怎么退回Win10系统?
- 数据库课程设计大作业大盘点【建议在校生收藏】
- 打印1-100之间的奇数
- 从零开始的Multi-armed Bandit
- Tensorflow模型量化(Quantization)原理及其实现方法
猜你喜欢

【综合类型第 34 篇】喜讯!喜讯!!喜讯!!!,我在 CSDN 的第一个实体铭牌

Moonbeam创始人解读多链新概念Connected Contract

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

You are a first-class loser, you become a first-class winner

MySQL 8.0.29 解压版安装教程(亲测有效)

What does a good resume look like in the eyes of a big factory interviewer?
![[MRCTF2020]Ezaudit](/img/80/d4656abdff20703591ffdc3f5a5ebc.png)
[MRCTF2020]Ezaudit

leetcode:1488. 避免洪水泛滥【二分 + 贪心】

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

olap——入门ClickHouse
随机推荐
KDD 2020 | 深入浅出优势特征蒸馏在淘宝推荐中的应用
DTSE Tech Talk丨第2期:1小时深度解读SaaS应用系统设计
DTSE Tech Talk丨Phase 2: 1 hour in-depth interpretation of SaaS application system design
Summary of String Copy, Concatenation, Comparison and Split Functions (1)
Visual Studio编辑器 2019:scanf函数返回值被忽略(C4996)报错及解决办法
huato 热更新环境搭建(DLL方式热更新C#代码)
查询表中开始日期与结束日期
【综合类型第 34 篇】喜讯!喜讯!!喜讯!!!,我在 CSDN 的第一个实体铭牌
FP6606ACAW4 TQFN-20L (3mmx3mm) USB双端口充电控制器 百盛电子代理
牛客网刷题——运算符问题
No qualifying bean of type问题解决
Discuz杂志/新闻报道模板(jeavi_line)UTF8-GBK模板
安全业务收入增速超70% 三六零筑牢数字安全龙头
Daily practice------Generate 13-digit bar, Ean-13 code rule: The thirteenth digit is the check code obtained by the calculation of the first twelve digits.
The way of life, share with you!
SLIM: Sparse Linear Methods (TopN推荐)
HUAWEI CLOUD data governance production line DataArts, let "data 'wisdom' speak"
MySQL 8.0.29 解压版安装教程(亲测有效)
Win11如何把d盘空间分给c盘?Win11d盘分盘出来给c盘的方法
支付系统架构设计详解,精彩!