Do I have to run "npm install" with all the "@"s?

Like do I need to run both npm install discord.js@latest and npm instal @discordjs/[email protected] etc...?
7 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
Tag suggestion for @icedqueen: discord.js includes multiple sub-packages, installing these separately can mess with internal code:
npm uninstall discord-api-types @discordjs/rest @discordjs/builders
yarn remove discord-api-types @discordjs/rest @discordjs/builders
pnpm remove discord-api-types @discordjs/rest @discordjs/builders
npm uninstall discord-api-types @discordjs/rest @discordjs/builders
yarn remove discord-api-types @discordjs/rest @discordjs/builders
pnpm remove discord-api-types @discordjs/rest @discordjs/builders
Iced Queen
Iced QueenOP2y ago
But do I need to do it on each one of them?
Idris
Idris2y ago
wdym?
monbrey
monbrey2y ago
Just install discord.js. It includes the other pacakges
Iced Queen
Iced QueenOP2y ago
So I only need to update discord.js, then I get all the other's as well? Cause I just did that and looking at my package.json file, I only see those:
"@discordjs/builders": "^1.2.0",
"@discordjs/opus": "^0.6.0",
"@discordjs/rest": "^0.1.0-canary.0",
"@discordjs/voice": "^0.10.0",
"@discordjs/builders": "^1.2.0",
"@discordjs/opus": "^0.6.0",
"@discordjs/rest": "^0.1.0-canary.0",
"@discordjs/voice": "^0.10.0",
Idris
Idris2y ago
as the tag is saying you can uninstall /rest, /builders and discord-api-types
Want results from more Discord servers?
Add your server