Angular CLI installation stops

Asked

Viewed 454 times

0

When I use the command install -g @ angular/cli Nodejs starts loading all Angular dependencies, but when it starts downloading the file [email protected] It stands still and does not load anymore and also does not generate errors. I tried to install the chokidar individually and saw that at the address he tries to get the file the same does not meet with content only with this {}.

To check what I say just try on Nodejs the command install -g @chokidar and you’ll see what I say. Now the question is: how do I install Angular and it has this problem?

  • Are you on Windows? Tried running cmd with administrative privileges? You can try clearing the npm cache by running npm cache clean

  • @angular/cli does not depend on the chokidar, see Dependency status for angular - @angular/cli, you can also see on Github the file package json. the list of dependencies does not include chokidar.

1 answer

0


So I always rode as administrator, I came to uninstall and install another version of the latest Node, just did not try to clear the cache

  • To be able to install I had to install previous version, pq if not put version you end up getting the last version, which I see this always with problem, solution was then: npm install -g @angular/[email protected]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.