weixin_55744264 2022-10-14 13:38 采纳率: 66.7%
浏览 59

npm install 的时候报错,如何解决?


20238 error code EPERM
20239 error syscall lstat
20240 error path D:\MyWorkAPP\IDEASPACE\ysdwzyjc\ruoyi-ui\node_modules\.staging\echarts-9cb80352\dist\echarts-en.simple.js
20241 error errno -4048
20242 error Error: EPERM: operation not permitted, lstat 'D:\MyWorkAPP\IDEASPACE\ysdwzyjc\ruoyi-ui\node_modules\.staging\echarts-9cb80352\dist\echarts-en.simple.js'
20242 error  [OperationalError: EPERM: operation not permitted, lstat 'D:\MyWorkAPP\IDEASPACE\ysdwzyjc\ruoyi-ui\node_modules\.staging\echarts-9cb80352\dist\echarts-en.simple.js'] {
20242 error   cause: [Error: EPERM: operation not permitted, lstat 'D:\MyWorkAPP\IDEASPACE\ysdwzyjc\ruoyi-ui\node_modules\.staging\echarts-9cb80352\dist\echarts-en.simple.js'] {
20242 error     errno: -4048,
20242 error     code: 'EPERM',
20242 error     syscall: 'lstat',
20242 error     path: 'D:\\MyWorkAPP\\IDEASPACE\\ysdwzyjc\\ruoyi-ui\\node_modules\\.staging\\echarts-9cb80352\\dist\\echarts-en.simple.js'
20242 error   },
20242 error   stack: "Error: EPERM: operation not permitted, lstat 'D:\\MyWorkAPP\\IDEASPACE\\ysdwzyjc\\ruoyi-ui\\node_modules\\.staging\\echarts-9cb80352\\dist\\echarts-en.simple.js'",
20242 error   errno: -4048,
20242 error   code: 'EPERM',
20242 error   syscall: 'lstat',
20242 error   path: 'D:\\MyWorkAPP\\IDEASPACE\\ysdwzyjc\\ruoyi-ui\\node_modules\\.staging\\echarts-9cb80352\\dist\\echarts-en.simple.js',
20242 error   parent: 'ruoyi-ui'
20242 error }
20243 error The operation was rejected by your operating system.
20243 error It's possible that the file was already in use (by a text editor or antivirus),
20243 error or that you lack permissions to access it.
20243 error
20243 error If you believe this might be a permissions issue, please double-check the
20243 error permissions of the file and its containing directories, or try running
20243 error the command again as root/Administrator.
20244 verbose exit [ -4048, true ]
  • 写回答

3条回答 默认 最新

  • 崽崽的谷雨 2022-10-14 13:46
    关注

    权限问题使用 管理员身份运行 cmd窗口

    评论

报告相同问题?

问题事件

  • 创建了问题 10月14日

悬赏问题

  • ¥20 指导如何跑通以下两个Github代码
  • ¥15 大家知道这个后备文件怎么删吗,为啥这些文件我只看到一份,没有后备呀
  • ¥15 C++为什么这个代码没报错运行不出来啊
  • ¥15 一道ban了很多东西的pyjail题
  • ¥15 关于#r语言#的问题:如何将生成的四幅图排在一起,且对变量的赋值进行更改,让组合的图漂亮、美观@(相关搜索:森林图)
  • ¥15 C++识别堆叠物体异常
  • ¥15 微软硬件驱动认证账号申请
  • ¥15 GPT写作提示指令词
  • ¥20 根据动态演化博弈支付矩阵完成复制动态方程求解和演化相图分析等
  • ¥15 华为超融合部署环境下RedHat虚拟机分区扩容问题