-
Notifications
You must be signed in to change notification settings - Fork 390
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
cannot find module 'dotenv' #20
Comments
Did you run |
do
|
Hey I'm having the same issue - when I follow your advice I end up with the same message but here is why do you have any idea how to solve this by chance?? $ npm i express npm ERR! A complete log of this run can be found in: |
delete your package-lock.json file and npm install again. Any dependencies they do no have installed simply use npm i npm is a node package manager and manages all of your packages to be able to run code. Check out what it is so you have a better idea of what you are doing. Environment setup can be a pain, sorry usually is a pain... |
after running the
npm run start
command, i get the error below:`
node:internal/modules/cjs/loader:927
throw err;
^
Error: Cannot find module 'dotenv'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
at Function.Module._load (node:internal/modules/cjs/loader:769:27)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (C:\Users\user\price-bot\index.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\Users\user\price-bot\index.js' ]
}`
The text was updated successfully, but these errors were encountered: