Question

npm install are very slow in sg server

Hi few days ago I had created a droplet in sg, one thing I notice is when I run npm install it get stucks on oarticular model , it taks like an hour coule not even finished , I encounter in my laravel and vuecli app.I used ny server before and deploy vuecli app didnot encounter this issue , are there any troubleshooting I can make thanks.

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-centos-8 this is how i install node via os package ? i tried to delete the node_model folder start again but it did not help thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Mine was getting stuck at 70% of npm or yarn prod. but restarting ubuntu sudo reboot solved it

Hi @stupidboy,

I had a similar problem. The reason was wrongly configured proxy and because of that npm was unable to download packages.

So your best bet is to see the output of

npm install --verbose

and identify the problem. Most probably the issue is - permissions are not sufficient for npm to modify files.

Regards, KFSys