当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- 目标检测中的先验框(Anchor)
- mysql:列类型之float、double
- 零分贝超静音无线鼠标!数量有限!!先到先得!!!【元旦专享】
- 元素的增删克隆以及利用增删来显示数据到页面上
- 子空间结构保持的多层极限学习机自编码器(ML-SELM-AE)
- 用matlab打造的摩斯电码加解码器音频版,支持包括中文在内的任意字符
- 狗都能看懂的变化检测网络Siam-NestedUNet讲解——解决工业检测的痛点
- IDEA 控制台 中文乱码问题(如果网上教程都无法解决你的问题的话)
- curl (7) Failed connect to localhost8080; Connection refused
- 舍不得花钱买1stOpt,不妨试试这款免费的拟合优化神器【openLU】
猜你喜欢

Gramm Angle field GAF time-series data into the image and applied to the fault diagnosis

Interpretation of EfficientNet: Composite scaling method of neural network (based on tf-Kersa reproduction code)

E-R图总结规范

idea使用@Autowired注解爆红原因及解决方法

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

软件:给大家推荐一款国产非常好用的效率软件uTools

舍不得花钱买1stOpt,不妨试试这款免费的拟合优化神器【openLU】

nacos 返回 403 unknown user 太他么坑了 源码解析

Detailed explanation of DenseNet and Keras reproduction code

Uos统信系统 IP地址以及完整主机名配置
随机推荐
Mac安装PHP开发环境
IE8 打开速度慢的解决办法
子空间结构保持的多层极限学习机自编码器(ML-SELM-AE)
U-Net详解:为什么它适合做医学图像分割?(基于tf-Kersa复现代码)
目标检测中的先验框(Anchor)
YOLOv3详解:从零开始搭建YOLOv3网络
对象的扩展补充
狗都能看懂的Pytorch MAML代码详解
VMD combined with ISSA to optimize LSSVM power prediction
90多款matlab工具箱打包放送
狗都能看懂的Vision Transformer的讲解和代码实现
树莓派 4 B 拨动开关控制风扇 Rasberry Pi 4 B Add Toggle Switch for the Fan
Database document generation tool V1.0
如何用matlab做高精度计算?【第二辑】
Faster RCNN原理及复现代码
无监督特征对齐的迁移学习理论框架
golang 的库引用方法
如何用matlab做高精度计算?【第三辑】(完)
Hardware Knowledge: Introduction to RTMP and RTSP Traditional Streaming Protocols
网页中常用的两种绘图技术,用canvas绘图,绘制出一个三角形,矩形,柱状图,扇形图