MainSilent / Discord-Screenshare

First ever discord video screenshare SELFBOT
298 stars 78 forks source link

Dotenv error #39

Closed Numbenj closed 2 years ago

Numbenj commented 2 years ago

$ bash main.js main.js: line 1: syntax error near unexpected token 'dotenv'' main.js: line 1:require('dotenv').config()'

Hello can you guys help me with this what is wrong and how i can fix this thanks

MainSilent commented 2 years ago

Have you followed the run instruction on README?

Numbenj commented 2 years ago

Have you followed the run instruction on README?

Yes i did when i use npm start

DiscordStream@1.0.0 start node main.js

node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'dotenv' Require stack:

MainSilent commented 2 years ago

Can you confirm the dotenv module is installed?

Numbenj commented 2 years ago

Can you confirm the dotenv module is installed?

I think so? When i use npm i dotenv npm install dotenv npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm ERR! Exit handler never called!

npm ERR! This is an error with npm itself. Please report this error at: npm ERR! https://github.com/npm/cli/issues

npm ERR! A complete log of this run can be found in: npm ERR! /data/data/com.termux/files/home/.npm/_logs/2022-05-10T13_14_26_452Z-debug-0.log

What else i should do? Using termux

MainSilent commented 2 years ago

I recommend using ubuntu

Numbenj commented 2 years ago

I recommend using ubuntu

Rn im with android and termux is a linux idk why this dotenv error showing..

MainSilent commented 2 years ago

I can help you only with ubuntu, They are both Linux but not only the arch might be different also the pre-installed programs might not be the same.

Numbenj commented 2 years ago

I can help you only with ubuntu, They are both Linux but not only the arch might be different also the pre-installed programs might not be the same.

Ubunto not in android ight?

MainSilent commented 2 years ago

I didn't understand, I believe you can set up the bot by checking the instruction and following other issues.