I get this error
PS C:\Users\Ahmet\Desktop\bot> pnpm install discord.js
pnpm : The term 'pnpm' is not recognized as the name of a cmdlet, function, script file, or operab
le program. Check the spelling of the name, or if a path was included, verify that the path is cor
rect and try again.
At line:1 char:1
+ pnpm install discord.js
+ ~~~~
+ CategoryInfo : ObjectNotFound: (pnpm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
8 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.PS C:\Users\Ahmet\Desktop\bot> node bot.js
PS C:\Users\Ahmet\Desktop\bot> and not responding ps
it's node package manager: no "p" at the start
pnpm exists too, if installed
Error: Cannot find module 'C:\Users\Ahmet\Desktop\bot\bo.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
@Squid
did you misspell bot? #rules 6
there is no file called "bo.js"
but it doesn't work
You are missing a lot of required JS knowledge.
Please brush up on your JS knowledge before you continue.
#rules 2 #resources #useful-servers