stegripe / bajigur

A simple and easy-to-use WhatsApp bot project, written in TypeScript.
GNU Affero General Public License v3.0
169 stars 51 forks source link

bang tolong #684

Open FahriAdison opened 6 months ago

FahriAdison commented 6 months ago

bajigur@1.5.5 start node --env-file=.env . node: bad option: --env-file=.env

Mednoob commented 6 months ago

Versi node yang mas pakai versi berapa?

FahriAdison commented 6 months ago

18

FahriAdison commented 6 months ago

Harus 20 kah

FahriAdison commented 6 months ago

gw udah pindahkan ke versi 20 tapi ada lagi ini,gw bingung node:internal/modules/cjs/loader:451 throw err; ^ Error: Cannot find module '/home/container/dist'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:443:19) at Module._findPath (node:internal/modules/cjs/loader:714:18) at resolveMainPath (node:internal/modules/run_main:26:23) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:24) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', path: '/home/container/package.json', requestPath: '/home/container' }

mzrtamp commented 6 months ago

Itu pake pterodactyl? Hapus semua isi servernya terus install ulang di node 20

FahriAdison commented 6 months ago

startup nya apa bang,npm start atau pnpm start atau sama keduanya?

mzrtamp commented 6 months ago

Coba liat yang punyamu sekarang

FahriAdison commented 6 months ago

WhatsApp Image 2024-04-25 at 17 13 31

Mednoob commented 6 months ago

Belum di build itu sama masnya projectnya. Coba di set CMD_RUN nya ke npm run build && /usr/local/bin/npm run start

FahriAdison commented 6 months ago

maksudnya gimana bang,aku belum ngerti hehe, soalnya itu di panel udah lengkap sama egg nya,yang aku bingung itu pakai npm start atau pnpm start atau itu keduanya,start nya udah ada

Mednoob commented 6 months ago

Iya, saya tau itu udah lengkap sama eggnya. Cuma, masalahnya di sini, masnya gak bisa langsung npm start atau pnpm start. Projectnya ini harus di compile terlebih dahulu dari TypeScript ke JavaScript. Setelah itu baru bisa di npm start.

Nah, tadi saya suruh set CMD_RUN nya ke itu biar dia nya compile dulu.