facebook

webeclipse can't update @angular/cli

  1. CodeMix & Angular IDE
  2.  > 
  3. Webclipse 1.x Help
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #579011 Reply

    Leonardo
    Participant

    Trying to compile project I get this error:

    ERROR in Please update @angular/cli. Angular 5+ requires at least Angular CLI 1.5+

    When I do a ng –version I get:

    @angular
    /cli: 1.2.6

    When I tried to update I used:
    npm uninstall -g angular-cli
    npm cache verify
    npm install -g @angular/cli@latest

    Everything went OK, but when I try ng –version, I still get @angular/cli: 1.2.6
    How can I update @angular/cli

    #579212 Reply

    support-swapna
    Moderator

    Leonardo,

    The correct command to remove the angular/cli from the project and install the latest are
    npm uninstall @angular/cli and npm install --save-dev @angular/cli@latest. The -g flag in the command will update the global version of angular/cli instead of the project’s local version.

    You can directly run npm install --save-dev @angular/cli@latest command and it will update the angular/cli version without having to remove it.

    Alternatively, you can also edit the project’s package.json, set the angular/cli version to the desired version in the devDependencies section and run npm install for the project from the Terminal+ view.

    Hope this helps. Please let us know how it works for you.

    –Swapna
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: webeclipse can't update @angular/cli

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in