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

devtools/2024/9/22 13:05:15/

完整错误信息

  • 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.ppmy.cn/devtools/115469.html

相关文章

大数据框架常用端口号总结

框架组件端口HadoopNameNode (HDFS)50070 (Hadoop 2.x) / 9870 (Hadoop 3.x)DataNode (HDFS)50075 (Hadoop 2.x) / 9864 (Hadoop 3.x)ResourceManager (YARN)8088, 8032NodeManager (YARN)8042, 8040HBaseHMaster16010, 16000RegionServer16030, 16020Zookeeper2181HiveHiveSer…

基于Python实现一个浪漫烟花秀

为了实现一个类似烟花秀的效果,我们可以通过复杂的粒子系统来模拟烟花的升起、绽放和下落效果。以下是一个示例,旨在创建更为动态和逼真的烟花秀效果。 示例代码 这个代码示例将使用 matplotlib 和 numpy,并实现更丰富的视觉效果&#xff1…

漏洞复现_永恒之蓝

1.概述 永恒之蓝(EternalBlue)是一个影响Windows操作系统的远程代码执行漏洞,编号为CVE-2017-0144,最初由美国国家安全局(NSA)开发并利用,后来被黑客组织Shadow Brokers泄露。该漏洞存在于SMBv…

C++——求3*3矩阵主对角元素之和。

没注释的源代码 #include <iostream> using namespace std; int main() { int a[3][3],i,j,sum0; cout<<"请输入a组中的元素:"<<endl; for(i0;i<2;i) { for(j0;j<2;j) { cin>>a[i][j]…

Ruby-SAML CVE-2024-45409 漏洞解决方案

GitLab 是一个全球知名的一体化 DevOps 平台&#xff0c;很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLab 是 GitLab 在中国的发行版&#xff0c;专门为中国程序员服务。可以一键式部署极狐GitLab。 学习极狐GitLab 的相关资料&#xff1a; 极狐GitLab 官网极狐…

C++速通LeetCode中等第20题-随机链表的复制(三步简单图解)

方法图解&#xff1a; class Solution { public:Node* copyRandomList(Node* head) {if ( !head ) {return nullptr;}Node *cur head;// 1. 在原节点的每个节点后创建一个节点while ( cur ) {Node *newNode new Node(cur -> val);newNode -> next cur -> next;cur …

数据结构之基数排序简介与举例

数据结构之基数排序简介与举例 1、基数排序简介 基数排序&#xff08;Radix Sort&#xff09;是一种非比较型整数排序算法&#xff0c;通过键值的各个位的值&#xff0c;将要排序的元素分配至某些“桶”中&#xff0c;达到排序的作用。它基于多关键字排序的思想&#xff0c;将…

设置spring boot禁止日志输出到控制台

我们一个Spring Boot项目&#xff0c;使用了org.slf4j.Logger.info记录日志。类似代码如下&#xff1a; Slf4j public class CTest {public void test() {。。。log.info("Hello World!");} }结果运行的时候&#xff0c;系统除了将日志记录到日志文件&#xff0c;还…