-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm install is very slow #349
Comments
Thank you for your feedback! I will update the "Create a new project" instructions (I'm thinking of an animated gif, so you can see how it works). The Giving it some second thought, it could also have to do with Hugo Installer (I recall an issue with it not working smoothly on a Virtual Machine). The upcoming Doks release (available by the end of this week) will require you to use your globally installed Hugo instead. It would be interesting to see how that works for you. |
Dear Sir, thank you very much for the fast and detailed reply. I will try to repeat the reported steps this evening just to ensure that it was not only a temporary issue. (Well, I tried two times yesterday.) In my personal view, animated gifs are more than necessary, just a few words that some interactive action may follow should be fine. Animated Gifs might look unprofessional -- if displayed slowly, they might look boring, if played fast, it might be difficult to follow. Well, that is my personal view only, for a few situations animations might be really helpful. My box is an up-to-date Gentoo-Linux, two years old AMD64 processor with 8 cores and 64 GB RAM with fast 100 MB/s Internet connection in Germany. Latest nodejs-20.12.1 is installed. I might try pnpm. Please consider also adding that hint "use pnpm — highly recommended for it is significantly faster than npm" to your instructions page, because not all of your users are professional web developers and might be not aware of this fact.
Oh, I was assuming that the globally Hugo was used, I had it already installed as www-apps/hugo-0.124.1::gentoo, I think last year with your Doks 0.5 I was required to install it globally with the Gentoo package manager? I will try again when that version is available and report the results. Best regards, Dr. Stefan Salewski |
Next test, same behaviour:
It hangs displaying above message for about seven minutes. Finally, after eight minutes it terminates successfully. Not really that bad, but some people might assume an issue after seven minutes of no update and abort the install. |
My feeling is, that that release is not yet available? Does it make sense to wait with updating my two pages https://nimprogramming.com/ and https://nimprogrammingbook.com/ Well, I am not in a hurry, I have even considered removing that pages from the Internet, as the interest in my book is very low. But in case I should decide to update the pages, I would like to use a sort of "stable" doks release, so that I do not have to update again soon. |
It is — I only did not find the time to communicate it. I will release update instructions soonish (I'm actually working on them now, so you're timing is great 😄 )
I get that. Doks 1.6 is a stable, restructured release — I don't expect/have planned for significant changes (after about three and a half years since the first release) I'll leave a comment here when the instructions are published |
I just found the announcement of Hyas 2.4 at https://gethyas.com/blog/hyas-2-4/. Actually, I was aware that Doks uses Hyas, but not about the fact that you are the main author of Hyas. So I just tried a fresh installation following the instructions at https://getdoks.org/docs/start-here/getting-started/ And it runs fine on my Gentoo box with Hugo v0.125.4+extended linux/amd64 installed with Gentoo package manager. The step
takes about one to two minutes, with a short stalling period of about 30 seconds with no graphical update, but that is fine. Much better than the eight minutes stall without update before. And the advantage of use of global Hugo is, that the created main directory is now only 134 MB instead of more than 300 MB as before. I will continue my install in the next few days. I hope I will get the deploy to website-hoster all-inkl.com working again -- initially one year ago, I had some issues, and i can not remember the details. |
Unfortunately the slow install still can occur. I just started with updating my other site, and got the following static message display for about six minutes:
as a result of
Some people might press CTRL-C in that situation. Two days ago the initial install was very fast, so I assume there is some server involved which is sometimes very slow. |
2024-05-14T16_40_45_664Z-debug-0.log I have attached the build log. |
Additional, I tried to delete the .npm directory:
But that made no difference, it took seven minutes in total again. |
Surprisingly, two $ npm install calls done with only 30 minutes time difference results in different directory structures:
And for the initial install the size was 134 MB. |
It looks like it's got something to do with your Gentoo setup (you're Node and npm versions look OK though). BTW I've no issues on my Manjaro machine and WSL |
Maybe you could try using a lower version of Node.js and npm? |
Thanks for that hint. I will try a different node version. |
I just tried the latest nodejs-22.1.0, but install takes again 7 minutes. It is a bit strange, but no real problem for me.
|
Dear Sir,
last year I created two tiny pages with your great Doks Hugo theme in version 0.5. Recently I discovered that now finally versions 1.x are available, so I just tried creating a new project from scratch -- when it should finally succeed, I might transfer my existing text files and upgrade the pages.
Two initial remarks, in case you are interested in improving your website with the instructions:
https://getdoks.org/docs/start-here/getting-started/
For people like me, not evolved with professional web development, it might not be that obvious that this command is interactive and will ask for the actual project name. Please consider adding a hint -- I was tempted to replace doks with my actual project name.
The next point is much more important:
started for me with some animations and displaying timings, but then stalled for minutes. I finally pressed some CTRL codes in the terminal after four minutes without visible changes, and tried again. Again same behaviour. And my Internet connection is typically very fast! This time I let it running, while using the web browser to see if I could use other packages managers on my Gentoo Linux box. Then finally, after more than 8 minutes, it finished successfully:
So please consider adding a hint that this action can take very long!
Best regards,
Dr. Stefan Salewski
The text was updated successfully, but these errors were encountered: