0
I’m creating a API in Node, for request with my application. But this error appears, claiming that this folder does not exist, but in the code I am not calling it anywhere.
module.js:472
throw err;
^
Error: Cannot find module 'C:\Users\Ramon Lopes\Documents\API\NodeApi.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:148:9)
at bootstrap_node.js:542:3
How are you running the server?
– igor.araujo
Igor.Raujo, run the server with normal commands (nodemon)Node.js and mongod(Mongodb). But Collins' help was enough. Thank you for your help.
– Ramon Lopes