I have an issue when I create a new project with adonis command.
adonis new api-test
maxence@maxence-optiplex-3010:~/code$ adonis --help
/usr/lib/node_modules/@adonisjs/cli/src/Commands/New/index.js:114
async handle ({ name }, options) {
^^^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/lib/node_modules/@adonisjs/cli/src/Commands/index.js:18:8)
maxence@maxence-optiplex-3010:~/code$
Hey @pirmax! 馃憢
It seems that you are using an old version of Node.js
Note that Adonis 4.0 need to have version 8 or greater of Node.js.
@RomainLanz Thanks, I check that this night :)
Thanks @RomainLanz. Faced same issue, upgraded Node.js and it works great now.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
@RomainLanz Thanks, I check that this night :)