Closed wnas closed 5 years ago
I installed with Yarn & it was working good.
yarn install goes ok, but after that yarn run start goes wrong. as does npm run start.
'yarn start' will do
$ cross-env NODE_ENV=development webpack-dev-server --config ./config/webpack.config.js
/Users/wnas/Documents/workspace/static-site-boilerplate/config/site.config.js:45
)
^
SyntaxError: Unexpected token )
at Object.exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:513:28)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/wnas/Documents/workspace/static-site-boilerplate/config/webpack.config.js:3:16)
at Module._compile (module.js:541:32)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
turned out, it was the version of node (below 8) that was the culprit. all is solved nowm
Describe the bug When trying to build with 'npm i' I get the following error message:
Additional context Add any other context about the problem here.