when run "npm install -g @angular/cli" it will run for some time and its get struck when extracting rxjs . Please help me. i already set proxy configuration.
node version :
8.10.0
NPM version :
5.6.0
am using windows 10.
when installation get stuck:
extract:rxjs: sill pacote rxjs@https://registry.npmjs.org/rxjs/-/rxjs-5.5.6.tgz extracted to C:Usersp00115856AppDataRoamingnpmnode_modules
<!-- Normally this includes a stack trace and some more information. -->

Possible duplicate of https://github.com/angular/angular-cli/issues/8367
I followed @avalanchy's solution and it worked for me.
"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 "
This appears to be an npm installation issue, which is not something that we're able to assist with, please see the possible duplicate issue above.
i also have the same problem while upgrading to angular 6, any solution?
I have the exact same problem using windows10, node v8.9.3, npm5.5.1
I tried
npm install --unsafe-perm
but the command freezes
extract:rxjs: sill pacote rxjs@https://registry.npmjs.org/rxjs/-/rxjs-6.2.2.tgz

use administrator permission to open cmd :) 馃挴
hi guys, any fix ?
already open the cmd as admin, but still stuck
By providing write access to node_modules and installing packages by
npm i --unsafe-perm --verbose install
Solved my problem. Thanks to all
@ashraphs its a long shot, but are you running in a vagrant VM? npm install creates a lot of I/O on the virtual machine that might make it crash. I just ran into this issue this morning on ubuntu/bionic64 see error description here: https://www.virtualbox.org/ticket/16417
Only occurs on a shared folder though, so hotfix for me was to copy the package.json in a folder that was not shared between guest and host system, run npm -i there and then cp -r the node_modules folder over afterwards.
Good luck.
I had the SAME issue: installation stalled on rsjx. Closed down the terminal, and restarted the process again, same issue the second time, BUT, I decided to let it sit and came back 30 mins later and it worked! I guess it just took time??
@radhemohan found your solution worked thanks!
Instead of "npm i --unsafe-perm --verbose install" I wrote
sudo npm i --unsafe-perm --verbose install
not sure if adding sudo actually did anything or not but the code still worked fine.
Install dependency one by one then it will work.
If you are running behind proxy, Configure proxy for npm and Git by running below commands.
NPM:
$ npm config set https-proxy http://proxy.[Company Name].com:8080
$ npm config set https-proxy http://proxy.[Company Name].com:8080
In case proxy needs credentials, you need to pass credentials like below,
$ npm config set https-proxy http://
$ npm config set https-proxy http://
Git:
$ git config --global http.proxy http://
This Resolved my problem. Hope this info will help you all
This is why I hate Node and all the related sh.... that comes with it. The process of problem solving is so arbitrary you never know what to expect.
I sincerely hope some day when I hit npm install, the floor cracks and I finally may die burned by the flames of hell, so I have not to suffer all of this over again.
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._
Most helpful comment
Possible duplicate of https://github.com/angular/angular-cli/issues/8367
I followed @avalanchy's solution and it worked for me.
"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 "