Clean Install - First Start Error
mikeerickson opened this issue · 3 comments
mikeerickson commented
Just completed install and giving a try. After completing generation process, I execute npm run dev
as documented. I can debug this further this evening, but figured I would let you know of immediate issues
% npm run dev !4941
> my-server@0.0.0 dev /Users/mikeerickson/Documents/Projects/test
> nodemon index.js
[nodemon] 1.9.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js`
/Users/mikeerickson/Documents/Projects/test/node_modules/milieu/lib/milieu.js:5
let ini; // Lazy loaded
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/Users/mikeerickson/Documents/Projects/test/node_modules/milieu/index.js:2:16)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
[nodemon] app crashed - waiting for file changes before starting...
ndelvalle commented
Hi @mikeerickson it's probably because you are not using a nodeJS version >= 6.3
. You can either dowload and install it on your machine, following this link. Or you can use this really useful tool to manage the nodeJS version, in case you still want to have your current version available.
mikeerickson commented
Ya, using 5.9.1 didn't see that in docs but probs just overlooked
Might wanna put an OS check and exit gracefully w/ message of such.
ndelvalle commented
Good idea @mikeerickson, I will look to implement that in the future