Report this

What is the reason for this report?

npm install are very slow in sg server

Posted on October 13, 2020

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



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!

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.

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.