已解决:Error: EPERM: operation not permitted, mkdir **\node_modules\.***-**'
2022/8/27 1:23:14
本文主要是介绍已解决:Error: EPERM: operation not permitted, mkdir **\node_modules\.***-**',对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Error: EPERM: operation not permitted, mkdir 'E:\nodejs\node_modules\.npm-x5uKn2gY'
在重装了win10系统后npm出现了此问题
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'E:\nodejs\node_modules\.npm-x5uKn2gY'
npm ERR! [Error: EPERM: operation not permitted, mkdir 'E:\nodejs\node_modules\.npm-x5uKn2gY'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: 'E:\\nodejs\\node_modules\\.npm-x5uKn2gY'
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!
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! A complete log of this run can be found in:
npm ERR! F:\Cache\npm_cache\_logs\2022-08-26T08_35_21_674Z-debug-0.log
解决方式 : 在nodejs 的 安装目录右击 选择 属性 > tab栏点击 安全 > 点击中间的编辑按钮 > 弹出的对话框 第一个框里点击自己所用的用户名 > 下边的权限至少选择到修改 > 我选择的是完全控制.
然后就解决了
这篇关于已解决:Error: EPERM: operation not permitted, mkdir **\node_modules\.***-**'的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-04-26敏捷开发:想要快速交付就必须舍弃产品质量?
- 2024-04-26静态代码分析的这些好处,我竟然都不知道?
- 2024-04-26你在测试金字塔的哪一层?(下)
- 2024-04-26快刀斩乱麻,DevOps让代码评审也自动起来
- 2024-04-262024年最好用的10款ER图神器!
- 2024-04-2203-为啥大模型LLM还没能完全替代你?
- 2024-04-2101-大语言模型发展
- 2024-04-17基于SpringWeb MultipartFile文件上传、下载功能
- 2024-04-14个人开发者,Spring Boot 项目如何部署
- 2024-04-14RAG应用开发实战02-相似性检索的关键 - Embedding