Nodemon loads directory index but does not open index

0

I have a problem using Nodemon, whenever I start or restart the server for it, instead of printing something on the console or loading a page, it is only in the directory index. It takes several minutes for it to finally respond and load the page or respond to a log request on the console.

    
asked by anonymous 12.06.2018 / 00:25

1 answer

0

As Max Rogério replied in the question comments, the lack of ./ before the file or .js path to be set was causing the error. To fix just add the ./ before the file. Ex: nodemon ./server.js

    
15.06.2018 / 06:30