Sunday, 9 April 2017

SyntaxError: Unexpected token angular-cli

node version in use: v5.7.0.

Trying install/upgrade angular-cli to latest version to support: angular-4

Upgraded npm to latest version using powershell as recommended by node team.

npm version in use after upgrade is: 4.5.0(latest)

Later tried to install angular-cli using: npm install -g @angular/cli

enter image description here

Except 2 warning at last, everything was installed successfully

enter image description here

But when i just type in ng or ng help: I get error as:

SyntaxError: Unexpected token = which is pointing to fallbacks argument in constructor function like this:

enter image description here

Instead of upgrading just npm, should we update node version as specified in: https://github.com/angular/angular-cli#prerequisites?

Or am i missing something?



via Mithun

No comments:

Post a Comment