当前位置:网站首页>Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
2022-08-04 05:36:00 【m0_67391683】
目录
报错情况: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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
猜你喜欢

误差指标分析计算之matlab实现【开源1.0.0版】

Based on the EEMD + + MLR GRU helped time series prediction

Uos统信系统 IP地址以及完整主机名配置

数据库知识:SQLServer创建非sa用户笔记

Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same

电脑知识:台式电脑应该选择品牌和组装,值得收藏

MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案

NelSon:一款新的适配matlab编程语法的编程工具

mysql:列类型之float、double

IoU, GIoU, DIoU and CIoU in target detection
随机推荐
HbuilderX 启动微信小程序 无法打开项目
Computer software: recommend a disk space analysis tool - WizTree
为什么不使用VS管理QT项目
Mac安装PHP开发环境
A priori box (Anchor) in target detection
电脑软件:推荐一款磁盘空间分析工具——WizTree
Based on the EEMD + + MLR GRU helped time series prediction
MySQL配置文件配置
“需求370解决解决爬取章节之后主题讨论评论消失问题”工作总结
Hardware Knowledge: Introduction to RTMP and RTSP Traditional Streaming Protocols
对产品设计,架构设计的一点思考
A semi-supervised Laplace skyhawk optimization depth nuclear extreme learning machine for classification
JVM调优实践
unicloud 腾讯云 上传文件 Have no access right to the storage uniapp
What is the connection between GRNN, RBF, PNN, KELM?
格拉姆角场GAF将时序数据转换为图像并应用于故障诊断
字符串的一些方法
CMDB 腾讯云部分实现
DenseNet详解及Keras复现代码
Uos统信系统 IP地址以及完整主机名配置