当前位置: 首页 > news >正文

nodejs 007:错误npm error Error: EPERM: operation not permitted, symlink

完整错误信息

  • npm error Error: EPERM: operation not permitted, symlink
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     'C:\\Users\\kingchuxing\\Documents\\IPFS\\orbit-db-set-master\\node_modules\\ipfs-cli',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\kingchuxing\Documents\IPFS\orbit-db-set-master\node_modules\ipfs-cli\dist\src'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\kingchuxing\\Documents\\IPFS\\orbit-db-set-master\\node_modules\\ipfs-cli\\dist\\src'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     'C:\\Users\\kingchuxing\\Documents\\IPFS\\orbit-db-set-master\\node_modules\\@libp2p\\record',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\kingchuxing\Documents\IPFS\orbit-db-set-master\node_modules\@libp2p\record\node_modules'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\kingchuxing\\Documents\\IPFS\\orbit-db-set-master\\node_modules\\@libp2p\\record\\node_modules'        
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\kingchuxing\Documents\IPFS\orbit-db-set-master\node_modules\go-ipfs-dep
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c node src/bin.js
npm error FetchError: request to https://dist.ipfs.io/go-ipfs/versions failed, reason:
npm error Download failed!
npm error A complete log of this run can be found in: C:\Users\kingchuxing\AppData\Local\npm-cache\_logs\2024-09-13T10_06_29_384Z-debug-0.log   
PS C:\Users\kingchuxing\Documents\IPFS\orbit-db-set-master> 

解决方法

  • 网上查到的cache clean命令解决方案不起作用:
rm -rf node_modules // 删除node_modules目录
npm cache clean --force
npm install
  • 以管理员身份安装即可正常运行
    在这里插入图片描述
  • 运行结果
    在这里插入图片描述
http://www.lryc.cn/news/440941.html

相关文章:

  • Rsync未授权访问漏洞复现及彻底修复
  • 影刀RPA实战:网页爬虫之携程酒店数据
  • 【UCB CS61C】Lecture 5 - Floating Point
  • 【Binlog实战】:基于Spring监听Binlog日志
  • 鸿蒙OpenHarmony【轻量系统芯片移植】轻量系统STM32F407芯片移植案例
  • 基于SpringBoot+定时任务实现地图上绘制车辆实时运动轨迹图
  • Rasa对话模型——做一个语言助手
  • golang学习笔记19——golang做服务发现与注册的深度剖析
  • ROS和ROS2借助智能大模型的学习和研究方法
  • 弹性负载均衡ELB 详解和设置方法
  • Python3网络爬虫开发实战(15)Scrapy 框架的使用(第一版)
  • 大众点评代发排名骗局
  • 硬件基础知识
  • 使用gitee如何回滚上一个版本,简单操作方式-gitee自带功能无需使用代码
  • 独立站技能树之建站33项自检清单 1.0丨出海笔记
  • js进阶-作用域是什么
  • ant-design表格自动合并相同内容的单元格
  • 通过多模态关系图学习实现可解释的医学图像视觉问答|文献速递--Transformer架构在医学影像分析中的应用
  • 从入门到精通,带你探索适合新手的视频剪辑工具
  • 线性规划------ + 案例 + Python源码求解(见文中)
  • 用Java实现人工智能
  • MobaXterm使用技巧
  • openstack中的rabbitmq
  • etcd三节点,其中一个坏掉了的恢复办法
  • 计算机毕业设计 基于SpringBoot框架的网上蛋糕销售系统的设计与实现 Java实战项目 附源码+文档+视频讲解
  • C编程控制PC蜂鸣器方法2
  • C# SQL 辅助工具
  • eNSP简单用法
  • 1035. 不相交的线
  • 1.pytest基础知识(默认的测试用例的规则以及基础应用)