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
While node in command prompt working fine'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…
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 22 (10 by maintainers)
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 thestart
ordev
script.It is a issue with the Node.js
v6.5
and they are patching it https://github.com/nodejs/node/pull/8445It is never recommended to construct paths like this and you should always use the
path
module.@webreinvent Replace
dev
script insidepackage.json
file with.nodemon --watch app --watch bootstrap --watch config --watch .env -x \"node --harmony_proxies\" server.js
I have fixed same in the repo too 😄