문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top