Slow npm install on WSL

For anyone who is playing around in WSL2 and want to installs some node dependencies.
For some reasons WSL2 has a hard time dealing with https:// downloads.
So if, like me, you run npm install and installing takes for ever.
You can tell node to use the http instead the https registery
npm config set registry http://registry.npmjs.org/

A bit more insecure, but waiting hours for something that should load in seconds is bad for your health.
I ate a full bag of chips while waiting :nauseated_face:

1 Like