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

Error: Cannot find module 'dotenv' #4

Open
ghirardinicola opened this issue Aug 10, 2023 · 2 comments
Open

Error: Cannot find module 'dotenv' #4

ghirardinicola opened this issue Aug 10, 2023 · 2 comments

Comments

@ghirardinicola
Copy link

Am i doing something wrong?

npm install -g heroml

changed 41 packages in 9s

3 packages are looking for funding
run npm fund for details

hero run app_proposal.heroml
node:internal/modules/cjs/loader:1073
throw err;
^

Error: Cannot find module 'dotenv'
Require stack:

  • /usr/local/lib/node_modules/heroml/dist/compilers/node/api/gpt.js
  • /usr/local/lib/node_modules/heroml/dist/compilers/node/index.js
  • /usr/local/lib/node_modules/heroml/dist/compilers/node/compile.js
  • /usr/local/lib/node_modules/heroml/dist/cli.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)
    at Module._load (node:internal/modules/cjs/loader:923:27)
    at Module.require (node:internal/modules/cjs/loader:1137:19)
    at require (node:internal/modules/helpers:121:18)
    at Object. (/usr/local/lib/node_modules/heroml/dist/compilers/node/api/gpt.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1255:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
    at Module.load (node:internal/modules/cjs/loader:1113:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1137:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/local/lib/node_modules/heroml/dist/compilers/node/api/gpt.js',
    '/usr/local/lib/node_modules/heroml/dist/compilers/node/index.js',
    '/usr/local/lib/node_modules/heroml/dist/compilers/node/compile.js',
    '/usr/local/lib/node_modules/heroml/dist/cli.js'
    ]
    }

Node.js v20.2.0

@kingmeers
Copy link
Contributor

Hi @ghirardinicola have you solved this issue ?

If you haven't already, please try:

npm install dotenv

@ghirardinicola
Copy link
Author

it works yes, i think it should only be added to the dependencies

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