Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have an error : Cannot find module './utils' [closed]

I am setting up my node js server and I have this error when I run this command npm run dev:

Error: Cannot find module './utils'
Require stack:
- /home/guesswl/www/node_modules/braces/lib/stringify.js
- /home/guesswl/www/node_modules/braces/index.js
- /home/guesswl/www/node_modules/chokidar/index.js
- /home/guesswl/www/node_modules/nodemon/lib/monitor/watch.js
- /home/guesswl/www/node_modules/nodemon/lib/monitor/run.js
- /home/guesswl/www/node_modules/nodemon/lib/monitor/index.js
- /home/guesswl/www/node_modules/nodemon/lib/nodemon.js
- /home/guesswl/www/node_modules/nodemon/lib/index.js
- /home/guesswl/www/node_modules/nodemon/bin/nodemon.js

How can I fix this error?

like image 658
Théo LB Avatar asked Jun 08 '26 14:06

Théo LB


1 Answers

Try delete > node_modules > npm install Or something wrong with node version.

like image 61
Rahul Beniwal Avatar answered Jun 10 '26 04:06

Rahul Beniwal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!