简体   繁体   中英

Nodemon with IcedCoffeeScript

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM