Angular-cli: angular cli freezes at extracting "rxjs"

Created on 6 Nov 2017  路  6Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> angular cli freezes at extracting "rxjs"
- [ ] feature request

Versions.


Angular CLI V 1.5.0

Repro steps.


Install node.js
run npm install -g @angular/cli

The log given by the failure.


[ ......] / extract:rxjs: sill pacote rxjs@https://registry.np
[email protected] checking installable status

Desired functionality.

Mention any other details that might be useful.

Most helpful comment

Ok, it unfreezes after a long time.

From the output grabbed this gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.9.1". After googling this line I found a solution of adding an extra flag "unsafe-perm" (which is not documented in npm install manual) that fixes the problem:

sudo npm i --unsafe-perm --verbose -g @angular/cli

All 6 comments

Same issue on my side. I am on the stable Debian with node installed with instructions from nodejs.org

$ uname -snr
Linux deb 4.9.0-3-amd64
$ aptitude show nodejs
Package: nodejs                          
Version: 8.9.1-1nodesource1
$ npm -v
5.5.1

It just a freezes forever every time on the same step:

$ sudo npm install -g @angular/cli
[            ......] | extract:rxjs: sill pacote rxjs@https://registry.npmjs.org/rxjs/-/rxjs-5.5.2.tgz extracted to /usr/lib/node_modules/.staging/rxjs-d0ee3eb8 by content address 2259ms

Ok, it unfreezes after a long time.

From the output grabbed this gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.9.1". After googling this line I found a solution of adding an extra flag "unsafe-perm" (which is not documented in npm install manual) that fixes the problem:

sudo npm i --unsafe-perm --verbose -g @angular/cli

@avalanchy I'm glad you were able to solve your issue.

Installation issues are not something that the CLI can solve itself, I suggest looking into npm permissions issues.

que desgracia uno queriendo aprender y ya padecer con problema tras otro tras otro, paciencia paciencia

que desgracia uno queriendo aprender y ya padecer con problema tras otro tras otro, paciencia paciencia

Wellcome to the Node.js stack dude!! Enjoy!

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings