首页 前端知识 关于npm install md5报错the command again as root/Administrator的解决办法

关于npm install md5报错the command again as root/Administrator的解决办法

2024-05-08 10:05:27 前端知识 前端哥 258 272 我要收藏

nodejs安装依赖报错

(venv) PS D:\pythonProject> npm install md5
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR!   requiredBy: '.'
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

解决办法:找到缓存位置,设置权限

D:\nodejs\node_cache\_logs

在这里插入图片描述
![在这里插入图片描述](https://img-blog.csdnimg.cn/6bb8706fb1284f98b851455cfabf44fc.png
在这里插入图片描述

在这里插入图片描述

转载请注明出处或者链接地址:https://www.qianduange.cn//article/7468.html
标签
评论
发布的文章

Pycharm创建json文件类型

2024-05-12 00:05:50

C#Post请求,带json参数。

2024-05-12 00:05:28

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!