当前位置:网站首页>Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法
2022-07-29 12:20: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的权限下”完全控制“权限的允许对勾,点击确定,退出。

边栏推荐
- influxdb2的使用
- DAY 27 daily SQL clock 】 【 丨 within a specified period of time all order products [difficult simple]
- 什么是BOM
- Wu En 07 regularization of teacher machine learning course notes
- 飞桨框架体验评测交流会,产品的使用体验由你来决定!
- 拦截器与过滤器(三)@interface自定义注解拦截
- 【我的OpenGL学习进阶之旅】向量点乘和叉乘的几何意义
- piglit_get_gl_enum_name 参数遍历
- 策略模式替代 if else
- 网络层和传输层限制
猜你喜欢

influxdb2的使用

JVM内存模型如何分配的?

TiDB upgrade share with case (TiDB v4.0.1 to v5.4.1)

小程序云函数实现微信支付如此简单

2.1 Bubble sort (mercifully Sorting)

nacos cluster construction

MLX90640 infrared thermal imaging temperature measuring sensor module development notes (9)

Recursion - Eight Queens Problem

微信H5网页分享只显示链接处理办法

nacos集群搭建
随机推荐
金仓数据库KingbaseES客户端编程接口指南-JDBC(4. JDBC 创建语句对象)
记账APP:小哈记账3——登录页面的制作
【每日SQL打卡】DAY 23丨学生们参加各科测试的次数【难度简单】
我和 TiDB 的故事 | 缘份在,那就终是能相遇的
什么是BOM
关于栈迁移的那些事儿
DAY 27 丨 daily SQL clock 】 【 every visit to the number of transactions "difficulty difficult - released in advance"
adb for mysql在什么平台进行开发啊
飞桨框架体验评测交流会,产品的使用体验由你来决定!
Chapter 6 c + + primer notes 】 【 function
piglit_get_gl_enum_from_name 参数遍历
DAY 27 daily SQL clock 】 【 丨 within a specified period of time all order products [difficult simple]
MLX90640 红外热成像仪测温传感器模块开发笔记(九)
最简单的共享列表服务器KissLists
365 days challenge LeetCode1000 topic - Day 043 square mathematics effectively
金仓数据库KingbaseES客户端编程接口指南-JDBC(3. JDBC 建立/关闭连接)
第十章 发现和记录 REST API
MySQL基础(DDL、DML、DQL)
[WeChat applet] WXSS and global, page configuration
The strategy pattern replacement if the else