Angular-cli: Installation issue, unable to run commands

Created on 22 Mar 2017  路  4Comments  路  Source: angular/angular-cli

[x] bug report

Hi, I wanted to give a try at angular-cli, but after installing it with npm the tools seems to be broken, I'm not event able to run ng --version.

Versions.

C:\Users\xxx\xxx\Angular2>node --version
v4.4.5

C:\Users\xxx\xxx\Angular2>npm --version
4.2.0

Repro steps.

ng --version

The log given by the failure.

C:\Users\xxx\xxx\Angular2>ng --version
C:\Users\xxx\AppData\Roaming\npm\node_modules\@angular\cli\models\config\config.js:16
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)
at require (internal/module.js:12:17)
at Object. (C:\Users\xxx\AppData\Roaming\npm\node_modules\@angular\cli\models\config.js:3:18)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

Most helpful comment

The required node version is 6.9 or greater.

All 4 comments

The required node version is 6.9 or greater.

Closing as answered by @clydin 馃憤

That's right, thank you

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._

Was this page helpful?
0 / 5 - 0 ratings