Skip to content

Installation issue, unable to run commands #5569

@bviale

Description

@bviale

[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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions