Reputation: 921
i am trying to install anugalr2 through npm command "npm install". but when it reaches some point that is in fsevents. the command prompt getting stuck. nothing is happening after that. PFb the cmd image
any suggestions /advice will be helpful
Update :
when i try with npm i --no-optional
. it is getting stuck at ""core-js" package
D:\Angular2\quickstart-master>npm i --no-optional
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or highe
to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: express 2.x series is deprecated
npm WARN deprecated [email protected]: connect 1.x series is deprecated
[ ......] - extract:core-js: sill pacote core-js@https://registry.n
Upvotes: 19
Views: 21416
Reputation: 31
npm won't work if you try to install on USB devices, try changing the directory to your hard drive.
Upvotes: 0
Reputation: 321
after i cleaned npm cache it worked for me
npm cache clean --force
Upvotes: 15
Reputation: 1
I managed to install without problems after moving the project to a folder with a shorter path. C:\Themes
Upvotes: 0
Reputation: 1538
I can see your path is not that long but in my case a problem was with a too long path.
So the solution was to move project to a location with shorter path, like: D:\my-project\
Upvotes: 0
Reputation: 3808
As @RidgeA said in their comment...
Use npm i --no-optional
. This will not install optional dependencies, one of which is fsevents
. The reason it is getting stuck is because fsevents
is written for Mac (see https://www.npmjs.com/package/fsevents).
Upvotes: 5