#I don't know how to fix this

29 messages · Page 1 of 1 (latest)

austere tide
#

The npm i dotenv command doesn't work for me and the "GatewayIntentBits.Guilds" doesn't work for me either because before I had the line "require('dotenv').config();" they threw me error

stray mural
austere tide
#

Keep the same friend, little by little I am getting unmotivated with the fact that I can fix it 😦

austere tide
#

@stray mural

stray mural
#

npm i dotenv --legacy-peer-deps

austere tide
austere tide
#

as?

stray mural
# austere tide as?

w/e
but still I don't really know what's up with this.
Should be something dependency related, so try using a fresh discordjs install

austere tide
#

and how to install the new discordjs?

shut kraken
#

npm install discord.js, i believe it will install the latest package

austere tide
shut kraken
#

Do you run windows or Linux?

#

Cause I might know the solution to windows. I had an issue like this and I did something to fix it.. you'll have to give me a bit to figure out exactly what I did but I can show you what I did. At least for windows

austere tide
#

Yes, I use windows, and send me the solution when you can, and thanks.

shut kraken
#

did you try typing in nodemon? That is also used to turn on the bot, or 'node <script.js>'

#

Because if you're typing in npm, and it is not giving a 'unknown command' error then the solution i was thinking of might not work. If 'nodemon' is showing up as a unknown command, then my solution might work

stray mural
restive topaz
#

I would like to write a program in Python that runs on a mobile phone. Can anyone tell me if it is possible on Android, iPhone or both and if so is one easier or harder?

austere tide
#

@shut kraken

shut kraken
#

What is exactly going on again? I forgot lol

shut kraken
austere tide
shut kraken
#

how i normally turn on my bot is by opening power shell, setting the policy execution session set to bypass using this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

and then switching to the directory of the project by running a command like this:
cd /path/to/project/
at least where the js file is located

Then I run the js file by typing in ./index.js

#

which than turns on the bot

#

see if that simullar approach works for you