Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how tf can i even run it #2

Open
shmuckylick3 opened this issue Jul 14, 2023 · 1 comment
Open

how tf can i even run it #2

shmuckylick3 opened this issue Jul 14, 2023 · 1 comment

Comments

@shmuckylick3
Copy link

shmuckylick3 commented Jul 14, 2023

Error: Cannot find module 'express'
Require stack:

  • C:\Users\Downloads\RizzGPT-main\RizzGPT-main\server.js
    ←[90m at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)←[39m
    ←[90m at Module._load (node:internal/modules/cjs/loader:920:27)←[39m
    ←[90m at Module.require (node:internal/modules/cjs/loader:1141:19)←[39m
    ←[90m at require (node:internal/modules/cjs/helpers:110:18)←[39m
    at Object. ←[90m(C:\Users\lemon\←[39mDownloads\RizzGPT-main\RizzGPT-main\server.js:1:17←[90m)←[39m
    ←[90m at Module._compile (node:internal/modules/cjs/loader:1254:14)←[39m
    ←[90m at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)←[39m
    ←[90m at Module.load (node:internal/modules/cjs/loader:1117:32)←[39m
    ←[90m at Module._load (node:internal/modules/cjs/loader:958:12)←[39m
    ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m {
    code: ←[32m'MODULE_NOT_FOUND'←[39m,
    requireStack: [
    ←[32m'C:\Users\\Downloads\RizzGPT-main\RizzGPT-main\server.js'←[39m
    ]
    }

Node.js v18.16.0

@arncv
Copy link
Collaborator

arncv commented Oct 17, 2023

I think I missed this issue somehow for 3 months lol.

To answer this,

First npm install to install all the dependencies

Next create a file .env and add `OPENAI_KEY' for it to work

Now that the key is added, you should run node server.js to run the server & it should work fine after this.

Let me know if you have any other problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants