Skip to content

how to fix this error when i do npm start it say "cannot find module #163023

Closed Answered by kleinborre
kylinekyline asked this question in npm
Discussion options

You must be logged in to vote

I think the issue is that dotenv is listed under devDependencies, and when you run npm install --production, it skips those packages. Try just running npm install dotenv to add it directly. Also, it's a good idea to check if the package is actually in your node_modules folder when errors like this come up.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kylinekyline
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
None yet
3 participants