angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

PS C:\aaa-angular2\foundation\ag2-tubes> ng help C:\Users\Ted-Home\AppData\Roaming\npm\node_modules\@angular\cli\models\config\config.js:15 constructor(_configPath, schema, configJson, fallbacks = []) { ^ SyntaxError: Unexpected token =

Open tedrob opened this issue 9 years ago • 3 comments

Windows 10 get this error when running ng --version. PS C:\aaa-angular2\foundation\ag2-tubes> ng --version C:\Users\Ted-Home\AppData\Roaming\npm\node_modules@angular\cli\models\config\config.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:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

The log given by the failure.

Normally this include a stack trace and some more information.

Mention any other details that might be useful.


Thanks! We'll be in touch soon.

tedrob avatar Feb 21 '17 22:02 tedrob

Angular CLI requires node 6.9 or greater.

hansl avatar Feb 21 '17 22:02 hansl

a proper error message would be nice.

phil294 avatar Mar 03 '17 02:03 phil294

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.