-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Dependencies installing with npm... error: Request timed out after one minute #6600
Comments
Looks like it's coming from:
Maybe it's because the |
@WintrCodes, if you could share the contents of the npm logs, that would be amazing. It could help us understand what's the underlying issue. |
When running |
I couldn't find the npm logs on my Mac; if someone knows where they'll be, I'll double check! |
If you check the screenshot you shared, the error gives you a path to where npm/pnpm storer error logs. |
The screenshot is from another user in Discord and on a Windows device. I asked them (in the thread) to provide the log |
I test it again, This the entire NPM error log! |
I am also facing the same issue |
I found that i was running a dev server in another terminal. close that an try again |
I had the same problem using with powershell, but after i switched to CMD it worked. |
didnt work for me :( |
I guess an easier fix for now is to extend the the reject timeout to 2 or 3 minutes, but at 1 min we can log that "it's taking a while". |
Since Astro is not in control of external factors (problems with the network, issues with npm, etc.), I believe we shouldn't fail if the dependencies failed to install. We should log a message saying "Astro couldn't install the dependencies, please install them yourselves |
I'm now running into this using the latest version of Astro. Whilst running npm i works this isn't a fix as the docs don't mention it as the default / must do thing to get up and running. I am trying Astro for the first time and problems on initial 'basic' setup is the last thing I wish to see. |
Yeah, I'm getting this too on Windows 10 (I know, don't judge me). Tried again following advice here - say no to installing dependencies and installing seperately works fine. |
What version of
astro
are you using?2.1.3
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac and Windows
What browser are you using?
N/A
Describe the Bug
When creating a new Astro project via 'npm create astro@latest', installing deps via the interactive CLI times out if you select 'yes' to install deps.
Edit: This screenshot is from another user mentioned below - logs have been requested in Discord
Workaround was to select 'no' and run 'npm i' after switching to the directory
Happened on Windows and MacOS Ventura
Requesting logs from Discord user (Peak)
Discord thread:
https://discordapp.com/channels/830184174198718474/1086276455773778020
Link to Minimal Reproducible Example
Unable to replicate in StackBlitz
Participation
The text was updated successfully, but these errors were encountered: