Error in Node.js Module.js 472 throw err;

Asked

Viewed 221 times

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.Raujo, run the server with normal commands (nodemon)Node.js and mongod(Mongodb). But Collins' help was enough. Thank you for your help.

1 answer

0


Execute

npm start

and then:

ng serves

  • Perfetio Collins, until today I had not succeeded , ams I executed your teaching and it worked.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.