Question

First of all, I install nodemon globally:

npm install -g nodemon

Then I try to start my apllication using the following command:

nodemon app.iced

And I get such error: "SyntaxError: Unexpected token ILLEGAL". However, I can run my application without nodemon without any errors:

iced --nodejs --debug app.iced

What the problem is?

Était-ce utile?

La solution

Try starting your app with:

nodemon -x iced app.iced

Also, if you're using nodemon you're probably interested in monitoring and restarting on changes to your codebase. So, if you want to automatically restart when an .iced file changes, you could do:

nodemon -x iced app.iced -e ".iced"

For more useful information on nodemon parameters, use nodemon --help.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top