juampi92/adonis-mongoose-model

...options ^ ParseError: Unexpected token

sliktrik opened this issue · 2 comments

Trying to run 'adonis make:mongoose Foo' as per the guide and get the following error.

/node_modules/adonis-mongoose-model/providers/MongooseProvider.js:50
...options
^
ParseError: Unexpected token

Looks like you are running an old version of node.js (older than v6).

However, I think you will have more problems in that case because Adonis v4 (which is required for this module) itself already requires modern node.js... So, can it be that you have old Adonis too?

T'was my node version, previously had 7.4.0, upgraded to 9.8.4 and it works perfectly.

Thank you