I am trying to setup existing nodejs project on my window
Npm -v :- 6.0.1
node -v :- v8.11.1
When i run node app.js i am getting following error
include-all attempted to require(C:\xampp\htdocs\sails\backend\api\services\FileUploadService.js)`, but an error occurred:: Details:Error: Cannot find module 'internal/util/types' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at evalmachine.:31:26 at Object. (C:\xampp\htdocs\sails\backend\node_modules\s3\node_modules\graceful-fs\fs.js:11:1) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (C:\xampp\htdocs\sails\backend\node_modules\s3\node_modules\graceful-fs\graceful-fs.js:3:27) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (C:\xampp\htdocs\sails\backend\node_modules\s3\lib\index.js:3:10)
Any idea? what i am missing
I had same issue. After researching it, it looks like there are many ways that people have fix this problem.
What caused the problem for me was that I upgraded node and needed to rebuild my project.
npm rebuild
Fixed it for me.
There is a lengthy discussion here: nodemon
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With