Win10系统所有文件夹被设为只读,取消之后再次打开属性依然只读,怎么解决?
2024-10-09 23:09:13
安装完Nodejs之后发现npm info vue指令没有权限运行:
C:\Users\JC>npm info vue
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path D:\nodejs\node_cache\_cacache
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\nodejs\node_cache\_cacache'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'D:\nodejs\node_cache\_cacache'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'D:\\nodejs\\node_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.
npm ERR! Log files were not written due to an error writing to the directory: D:\nodejs\node_cache\_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
打开nodejs的文件夹属性可以发现他是只读文件夹,且当前用户没有写入权限
解决方法:
右键文件夹->属性->安全->高级->双击当前用户->更改权限为完全控制即可
最新文章
- 4、DES和RSA简介
- 2016年6月20日 JAVA知识框架
- htm5l,第一个script代码练习
- JavaScript使用DeviceOne开发实战(一) 配置和起步
- C#--析构函数
- 【BZOJ】1436: Poi2003 Trinomial
- You Only Live Once
- 爬网页?--Chrome帮你计算XPath
- Xunit
- node基础 --全局
- discuz 发布分类信息,能不能设置单版块去掉“发帖子”(默认点发帖后为自定义的默认分类信息模版)
- UIPickView 和 UIDatePicker
- 结队开发项目——七巧板NABC需求分析
- Javascript中函数调用和this的关系
- pecl安装php的ev扩展时的报错处理
- HDU 5889 Barricade 【BFS+最小割 网络流】(2016 ACM/ICPC Asia Regional Qingdao Online)
- Sql Server 服务器名称\实例名称 无法连接 Server Name\Instance Name
- IntelliJ IDEA中怎样使用JUnit4
- poj 1061 扩展欧几里德同余方程求解
- WPF项目学习.三
热门文章
- RocketMQ 5.0 vs 4.9.X 图解架构对比
- PostgreSQL cache lookup failed for type XXXX 错误
- sqlserver 循环插入脚本
- Anaconda 使用教程
- elasticsearch 内存分配设置
- 使用oledb读写excel出现“操作必须使用一个可更新的查询”的解决办法
- Python 闭包,生成式,推导式
- 新的学习历程-python6 字符串基础使用
- grafana+prometheus+tomcat 监控tomcat
- react lodash节流this找不到正确用法