由于 MaxListenersExceededWarning,Npm 安装失败。 [TLSSocket] 添加了 11 个关闭侦听器

问题描述 投票:0回答:1

我正在本地计算机上设置 github 存储库 [expensify/App],在安装 npm 软件包时,我在控制台日志中收到这些错误

(node:17180) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\hp\\Desktop\\Projects\\ExpensifyApp\\node_modules\\@storybook\\addon-toolbars',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\hp\Desktop\Projects\ExpensifyApp\node_modules\@storybook\addon-toolbars\node_modules\@storybook'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\hp\\Desktop\\Projects\\ExpensifyApp\\node_modules\\@storybook\\addon-toolbars\\node_modules\\@storybook'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\hp\\Desktop\\Projects\\ExpensifyApp\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\hp\Desktop\Projects\ExpensifyApp\node_modules\@oguzhnatly\react-native-image-manipulator\Example\ios\Example'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\hp\\Desktop\\Projects\\ExpensifyApp\\node_modules\\@oguzhnatly\\react-native-image-manipulator\\Example\\ios\\Example'   
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\hp\\Desktop\\Projects\\ExpensifyApp\\node_modules\\@oguzhnatly',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\hp\Desktop\Projects\ExpensifyApp\node_modules\@oguzhnatly\react-native-image-manipulator\Example\android\app\src\main\res'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\hp\\Desktop\\Projects\\ExpensifyApp\\node_modules\\@oguzhnatly\\react-native-image-manipulator\\Example\\android\\app\\src\\main\\res'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to https://registry.npmjs.org/zwitch/-/zwitch-1.0.5.tgz failed, reason: Client network socket disconnected before secure TLS connection was established
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. 

我的互联网连接良好,所以我的连接没有问题,这是一个公司存储库,我对开源贡献感兴趣,公司是否设置了任何安全协议导致这些错误?

node.js npm npm-install
1个回答
0
投票

解决了这个问题:-

我卸载了节点,然后安装了 nvm 以安装正确版本的节点,并且我还清除了 .npmrc 文件 (c/users/hp/.npmrc)。在具有管理权限的文本编辑器中打开此文件,删除所有内容,然后保存。

© www.soinside.com 2019 - 2024. All rights reserved.