Error installing packages.

I thought I resolved it but didn't. I am running into this problem when trying to install packages. What would you suggest I do to resolve them or track down what's causing it?
node_modules/@types/node/events.d.ts(503,30): error TS2300: Duplicate identifier 'EventEmitter'.
node_modules/@types/node/stream.d.ts(53,11): error TS2420: Class 'ReadableBase' incorrectly implements interface 'ReadableStream'.
Type 'ReadableBase' is missing the following properties from type 'ReadableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more.
node_modules/@types/node/stream.d.ts(662,11): error TS2420: Class 'WritableBase' incorrectly implements interface 'WritableStream'.
Type 'WritableBase' is missing the following properties from type 'WritableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more.
node_modules/@types/node/test.d.ts(377,11): error TS2420: Class 'TestsStream' incorrectly implements interface 'ReadableStream'.
Type 'TestsStream' is missing the following properties from type 'ReadableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more.
node_modules/discord.js/typings/index.d.ts(246,9): error TS2300: Duplicate identifier 'EventEmitter'.
The command '/bin/sh -c npm run tsc' returned a non-zero code: 1
node_modules/@types/node/events.d.ts(503,30): error TS2300: Duplicate identifier 'EventEmitter'.
node_modules/@types/node/stream.d.ts(53,11): error TS2420: Class 'ReadableBase' incorrectly implements interface 'ReadableStream'.
Type 'ReadableBase' is missing the following properties from type 'ReadableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more.
node_modules/@types/node/stream.d.ts(662,11): error TS2420: Class 'WritableBase' incorrectly implements interface 'WritableStream'.
Type 'WritableBase' is missing the following properties from type 'WritableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more.
node_modules/@types/node/test.d.ts(377,11): error TS2420: Class 'TestsStream' incorrectly implements interface 'ReadableStream'.
Type 'TestsStream' is missing the following properties from type 'ReadableStream': off, removeAllListeners, setMaxListeners, getMaxListeners, and 4 more.
node_modules/discord.js/typings/index.d.ts(246,9): error TS2300: Duplicate identifier 'EventEmitter'.
The command '/bin/sh -c npm run tsc' returned a non-zero code: 1
7 Replies
d.js toolkit
d.js toolkit4mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Mark
Mark4mo ago
What version of TS are you using
⛧Bζ͜͡annerBomb⛧
5.4.5 atm
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
⛧Bζ͜͡annerBomb⛧
just tried to upgrad to 5.5.4 still same error I set "typescript": "^5.5.4" in my package.json when installing packages but it throws that error when running through the "tsc" command during startup. Just so y'all know im running node 22.6.0 as well Ok let me try
⛧Bζ͜͡annerBomb⛧
still failing with 5.4.5
No description
No description
⛧Bζ͜͡annerBomb⛧
well I got it working now. I removed the ^ from the typescript version
Want results from more Discord servers?
Add your server