Skip to content

Global cli install keeps breaking because of Installing a temporary version to perform the update #16010

Closed
@dottodot

Description

@dottodot

Using the latest version of cli I keep getting this warning

Your global Angular CLI version (8.3.17) is greater than your local
version (8.3.16). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
The installed Angular CLI version is older than the latest published version.
Installing a temporary version to perform the update.

and after this if I try using ng I then get an error of

bash: /usr/local/bin/ng: No such file or directory

If I then run

npm i -g  @angular/cli

I get an error of

npm ERR! Refusing to delete /usr/local/bin/ng: ../../../private/var/folders/h_/nr3rbk_917v1v7f01_tpt4_80000gn/T/.ng-temp-packages-n6S6NB/node_modules/.bin/ng symlink target is not controlled by npm /usr/local/lib/node_modules/@angular/cli
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.

so my only way around is to remove /usr/local/bin/ng and then install again.

I have to do this every time I run ng update and it's been and issue since v8.3.13

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions