core: fresh setup - error

I have done a fresh setup and when I run “npm run dev”, i receive following error:

F:\node\adonis\aclApp>npm run dev

adonis-app@3.0.0 dev F:\node\adonis\aclApp nodemon --watch app --watch bootstrap --watch config --watch .env -x ‘node --harmony _proxies’ server.js

[nodemon] 1.9.2 [nodemon] to restart at any time, enter rs [nodemon] watching: F:\node\adonis\aclApp\app//* F:\node\adonis\aclApp\bootstrap//

  • F:\node\adonis\aclApp\config/*/ .env [nodemon] starting 'node --harmony_proxies' server.js '‘node’ is not recognized as an internal or external command, operable program or batch file. [nodemon] app crashed - waiting for file changes before starting…

    While node in command prompt working fine

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

You just have to look into the error thrown by the node. node: bad option: --harmony_proxies.

For now you have to remove --harmony_proxies flag from the start or dev script.

It is a issue with the Node.js v6.5 and they are patching it https://github.com/nodejs/node/pull/8445

It is never recommended to construct paths like this and you should always use the path module.

path.join(__dirname, '../../providers/Niddar/NiddarProvider')

@webreinvent Replace dev script inside package.jsonfile with. nodemon --watch app --watch bootstrap --watch config --watch .env -x \"node --harmony_proxies\" server.js

I have fixed same in the repo too 😄