0

Even after re-installation can't make ng use angular-cli 1.6

sudo npm install -g @angular/cli --unsafe-perm

/usr/bin/ng -> /usr/lib/node_modules/@angular/cli/bin/ng npm WARN @schematics/[email protected] requires a peer of @angular-devkit/[email protected] but none is installed. You must install peer dependencies yourself. npm WARN @schematics/[email protected] requires a peer of @angular-devkit/[email protected] but none is installed. You must install peer dependencies yourself.

+@angular/[email protected]

updated 1 package in 22.197s

ng still shows older version

$ ng -v

angular-cli: 1.0.0-beta.28.3

node: 8.9.2

os: linux x64

@angular/common: 2.4.10

@angular/compiler: 2.4.10

@angular/core: 2.4.10

@angular/forms: 2.4.10

@angular/http: 2.4.10

@angular/platform-browser: 2.4.10

@angular/platform-browser-dynamic: 2.4.10

@angular/router: 3.4.10

@angular/compiler-cli: 2.4.10

1 Answer 1

1

Looks like you have installed a old version of the angular cli globaly. Try to uninstall it with this commands:

sudo npm uninstall -g angular-cli 
npm cache clean

Here the link to the update story on github anglur-cli.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.