Error when installing packages

Hey I am running into this problem when trying to install packages. What would you suggest I do to resolve them?
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
1 Reply
d.js toolkit
d.js toolkit5mo 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
Want results from more Discord servers?
Add your server