#Help

61 messages · Page 1 of 1 (latest)

strange frost
#

Can someone dm me pls to help me install it cos it's not working

sullen agateBOT
#

• 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.

strange frost
#

?

keen ether
strange frost
#

so not

#

npm init -y

#

?

proud badger
#

We dont do DM support, you can use this thread

strange frost
#

ok

proud badger
#

If you have problems installing, explain your problem

keen ether
#

ill explain from the beginning do you have windows os?

strange frost
#

yep

#

windows 10

keen ether
#

ok so we can skip installing windows step

proud badger
#

You shouldnt need to be explaining basic Node application setup to people, there are hundreds of guides including our own

strange frost
#

i have tried

#

still isn't

#

working

keen ether
#

now right click on your desktop and move your cursor on New and click Folder

strange frost
#

ok

#

done

keen ether
#

after you create the folder you need to open cmd you can use the windows cmd or you can install custom cmd like cmder

strange frost
#

alr got it open

keen ether
#

and then navigate to the folder you created with cd command

strange frost
#

yup

keen ether
#

now in the cmd run npm init -y command

#

create index.js or index.ts file and install discord.js with npm i discord.js command

strange frost
#

alr

keen ether
#

no wait

#

create src folder and in the src folder create index.js or .ts file

strange frost
#

alr

#

wait so am I running npm init -y in my cmd prompt?

keen ether
#

yes

strange frost
#

that's wher ei get my problems

#

'npm' is not recognized as an internal or external command,
operable program or batch file.

#

that's what it says

keen ether
#

i forget about that step

strange frost
#

oh

keen ether
#

you need to go to https://nodejs.org/ and install the recommended for most users version

strange frost
#

so not the latest?

keen ether
#

16.16.0

strange frost
#

ok

#

done

keen ether
#

now you can use the npm command

strange frost
#

omg it worked!

#

thank u so much u were so helpful!!

#

now can I code in js?

#

on vsc

keen ether
#

yes

strange frost
#

alr thank u

keen ether
strange frost
#

thank uuuuuu

#

Do I have to something else on vsc to set it up?

keen ether
#

no

strange frost
#

no specific files or anything?

#

I just made a file

keen ether
strange frost
#

aight thank uuuu

keen ether
#

you can do everything in one file but its not cool

strange frost
#

oh

#

lol