当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- ES6新语法:symbol,map容器
- 在线公众号文章内容转音频文件实用小工具
- 如何在Excel 里倒序排列表格数据 || csv表格倒序排列数据
- Flask request 返回网页中 checkbox 是否选中
- A priori box (Anchor) in target detection
- Database: Organize Four Practical SQL Server Scripting Functions
- matlab的2DCNN、1DCNN、BP、SVM故障诊断与结果可视化
- 花了近70美元入手的学生版MATLAB体验到底如何?
- idea使用@Autowired注解爆红原因及解决方法
- 2DCNN, 1DCNN, BP, SVM fault diagnosis and result visualization of matlab
猜你喜欢
IoU, GIoU, DIoU and CIoU in target detection
华硕飞行堡垒系列无线网经常显示“无法连接网络” || 一打开游戏就断网
用手机也能轻松玩转MATLAB编程
idea使用@Autowired注解爆红原因及解决方法
子空间结构保持的多层极限学习机自编码器(ML-SELM-AE)
Uos统信系统 IP地址以及完整主机名配置
curl (7) Failed connect to localhost8080; Connection refused
Base64编码原理
解决腾讯云DescribeInstances api查询20条记录以上的问题
Database knowledge: SQLServer creates non-sa user notes
随机推荐
golang 坐标格式 转换 GCJ02ToWGS84
Detailed explanation of DenseNet and Keras reproduction code
matlab科研绘图模板,直接奉上源代码!
代码小变化带来的大不同
A semi-supervised Laplace skyhawk optimization depth nuclear extreme learning machine for classification
CMDB 腾讯云部分实现
桌面右键的NVIDIA去除与恢复
Prematurely reached end of stream
Software: Recommend a domestic and very easy-to-use efficiency software uTools to everyone
MySQL面试题大全(陆续更新)
set集合
DOM的12中节点类型,通过关系或方法获取DOM节点,渲染到浏览器页面的一些特效功能,获取DOM节点来改变属性,点击图片,切换为所点击的图片为背景图,页面上的表单验证,点击底部导航栏切换界面
如何用matlab做高精度计算?【第二辑】
基于爬行动物搜索RSA优化LSTM的时间序列预测
curl (7) Failed connect to localhost8080; Connection refused
DenseNet详解及Keras复现代码
Microsoft Store 微软应用商店无法连接网络,错误代码:0x80131500
网络技巧:教你给路由器装上电池,断电照样可以上网!
目标检测中的IoU、GIoU、DIoU与CIoU
Different lower_case_table_names settings for server (‘1‘) and data dictionary (‘0‘) 解决方案