IBM / ibmi-oss-issues

Important resources for anyone interested in open source on IBM i
Creative Commons Zero v1.0 Universal
13 stars 0 forks source link

npm install error #43

Closed jjoslyndxc closed 9 months ago

jjoslyndxc commented 1 year ago

After installing Node.js v20.5.1, I try to "npm install" express but I get the error... (node:10654) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created)

This happens when I try to install any module with npm. What is this issue here?

kadler commented 1 year ago

Can you post the full output?

jjoslyndxc commented 1 year ago

$ npm install express (node:20439) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created) (node:20439) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit [..................] | idealTree:nodetst: sill idealTree buildDeps

abmusse commented 1 year ago

I just tested this out from bash shell session :

$ node --version
v20.5.1

$ npm install express --save

added 58 packages, and audited 59 packages in 5s

8 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

@jjoslyndxc

Are you running this from qshell?

jjoslyndxc commented 1 year ago

No I ran from putty I’ll try from qshell and add the –save option

Josh Joslyn Professional System Administrator, Americas System i (AS/400) DXC Technology M +1.316.841.1951 @.**@.>

From: Abdirahim Musse @.> Sent: Wednesday, September 6, 2023 11:28 AM To: IBM/ibmi-oss-issues @.> Cc: Joslyn, Josh @.>; Mention @.> Subject: Re: [IBM/ibmi-oss-issues] npm install error (Issue #43)

I just tested this out from bash shell session :

$ node --version

v20.5.1

$ npm install express --save

added 58 packages, and audited 59 packages in 5s

8 packages are looking for funding

run npm fund for details

found 0 vulnerabilities

@jjoslyndxchttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjjoslyndxc&data=05%7C01%7Cjjoslyn%40dxc.com%7Ccc15ff4708eb4b8e0e2d08dbaef63b63%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638296144805888345%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zJZTDPbQcCdQNPb2NbxLa4dSXJ4FggBDJfZBAxC1uZ4%3D&reserved=0

Are you running this from qshell?

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FIBM%2Fibmi-oss-issues%2Fissues%2F43%23issuecomment-1708713901&data=05%7C01%7Cjjoslyn%40dxc.com%7Ccc15ff4708eb4b8e0e2d08dbaef63b63%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638296144805888345%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=XkA7eMQ%2FjnG2uHaBVrRPn4d9FiM8JebndmGWw1V5U1s%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA4MVN3AMWND3LTHGNU7VWWTXZCQAJANCNFSM6AAAAAA4L4R7MQ&data=05%7C01%7Cjjoslyn%40dxc.com%7Ccc15ff4708eb4b8e0e2d08dbaef63b63%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638296144805888345%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dPmDdT8%2BtEt8moTf2uzKEBaN7DF8D6KY0%2BY580a9GDI%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.**@.>>

abmusse commented 1 year ago

Don't run it from qshell. I was asking because running commands from qshell could cause strange failures. The --save option shouldn't do anything special it just saves express as a dependency in your package.json.

abmusse commented 9 months ago

Closing due to inactivity