When I try to run the command npm install -g cordova ionic
, it gets stuck for hours.
Asked
Active
Viewed 108 times
0
-
Are you behind a proxy? – dariru May 30 '17 at 01:35
-
I am actually at home using LAN connection. – Roy May 30 '17 at 01:36
-
1Have you tried this answer from a similar question: https://stackoverflow.com/questions/40874237/npm-install-hangs-on-loadrequesteddeps – dariru May 30 '17 at 01:39
-
Thank you! It worked :) But why? ... doesn't make any sense. Also should I revert the changes once it is installed? – Roy May 30 '17 at 01:48
2 Answers
0
Follow the below step for proceeding further
- Clean the
npm cache
- Update
npm and node version
- reinstalling
npm and node
I found that changing my Environment Variable TEMP to = C:\tmp worked. use this tutorial https://docs.npmjs.com/cli/cache

Nimantha
- 6,405
- 6
- 28
- 69

Pushpendra
- 1,492
- 1
- 17
- 33
0
I also faced the same problem .So, somewhere I found the below command which worked for me. npm install -g ionic cordova

PRIYA PARASHAR
- 777
- 4
- 15