Windows 10
get this error when running ng --version.
PS C:aaa-angular2foundationag2-tubes> ng --version
C:UsersTed-HomeAppDataRoamingnpmnode_modules@angularclimodelsconfigconfig.js:15
constructor(_configPath, schema, configJson, fallbacks = []) {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
Please provide us with the following information:
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Normally this include a stack trace and some more information.
Thanks! We'll be in touch soon.
Angular CLI requires node 6.9 or greater.
a proper error message would be nice.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
a proper error message would be nice.