当前位置:网站首页>Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
2022-07-31 12:28:00 【m0_67393413】
目录
报错情况: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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- 关于==和equals的区别和联系,面试这么回答就可以
- PyQt5快速开发与实战 9.7 UI层的自动化测试
- CWE4.8 -- 2022年危害最大的25种软件安全问题
- vb.net 画曲线
- Getting started with jmeter performance testing steps (performance testing tool jmeter)
- 集群的安全模式
- 函数递归1.0
- ASM module in SAP Ecommerce Cloud Spartacus UI and Accelerator UI
- Use IN List Population in Your JDBC Application to Avoid Cursor Cache Contention Issues
- CWE4.8 -- 2022年危害最大的25种软件安全问题
猜你喜欢

AMBA APB学习记录(AMBA 2.0)

手撕Verilog PWM呼吸灯

通过斐波那契数再谈函数递归2.0

CWE4.8 -- 2022年危害最大的25种软件安全问题

SAP ABAP OData 服务如何支持 $filter (过滤)操作试读版

DCM 中间件家族迎来新成员

Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案

MySQL面试八股文(2022最新整理)

Shengxin Weekly Issue 38

普林斯顿微积分读本03第二章--编程实现函数图像绘制、三角学回顾
随机推荐
立一个flag
A40i/T3 uboot启动时对PMU部分初始化
0x80070570 The file or directory is damaged and cannot be deleted (how to delete 0x80070091)
Service discovery of kubernetes
Double non-one into bytes!!Pure dry goods sharing
立方体IV(暑假每日一题 10)
函数的参数
Use Excel to read data exposed by SAP ABAP CDS View through ODBC
SAP message TK 248 solved
Qt鼠标穿透
荣耀手机参数写错,客服认为没错
Comparison of ipv4 and ipv6 (IPV4)
Caused by: 类找不到: org.apache.flink.table.planner.delegation.ParserFactory或者ExecutorFactory
chroot命令
基本语法(一)
JVS应用中心
0x80070570文件或目录损坏且无法删除(0x80070091怎么删除)
列表页优化思路
ESP8266-Arduino编程实例-MCP9808数字温度传感器驱动
ESP8266-Arduino编程实例-HDC1008温度湿度传感器驱动