Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node and npm too slow to start after install of macOS Mojave

Actually, before macOS Mojave, node/npm would start immediately, and then depending on the task would take their time (10-20 seconds to finish ng start ).

After upgrading to macOS Mojave, it takes 30-45 seconds to start the process, then 10-20 seconds to ng serve.

The only change was upgrading to macOS Mojave

Any ideas?

like image 421
smorhaim Avatar asked Oct 27 '22 23:10

smorhaim


1 Answers

I was facing the same issue...

Again Issue was not just related to Angular or React project... All the nodejs based CLI got slower after macOS Mojave update.

I had nvm to manage my node version so install LTS again with nvm install --lts and npm start and ng start starts working normally ...

If you do not have nvm just remove nodejs and reinstall again

like image 105
Parimal Yeole Avatar answered Nov 15 '22 07:11

Parimal Yeole