-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cannot install astro (esbuild/arch linux) #5882
Comments
Maybe you can try |
That did not seem to help. |
Is your There have been reports that the esbuild Arch User Repository (AUR) package sets this variable in |
@HiDeoo Thank you! I think this was the issue but can't be 100% certain. So in short, remove AUR package and make sure env is not set. |
What version of
astro
are you using?v1.9.2
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
Npm and yarn
What operating system are you using?
(Arch) Linux
Describe the Bug
Using
npm create astro@latest
or manually usingnpm i astro
fails to install astro, where astro is then not found.node_modules
is not present in this folder indicating that installing dependencies failed.Installing afterwards gives this error:
This error happens in every environment I tried (besides with
sudo
which I do not want but which indicates that something is wrong with my environment).With nvm I tried node versions: lowest compatible v16, some other v16, latest v16, latest v18 and lts.
All of them have the same issue.
In some cases I did manage to install it but then running it gave this output:
Although I haven't been able to reproduce this.
Another user, also using Arch Linux has the same issue and posted this video:
https://cdn.discordapp.com/attachments/1064581076636409866/1064696896708427806/astro.mp4
Environment information:
Conversation in the official Astro Discord here:
https://discord.com/channels/830184174198718474/1064581076636409866/1064581076636409866
Link to Minimal Reproducible Example
I am unsure of how to create a reproducible environment for this issue. npm create astro@latest brings up the issue on my system.
Participation
The text was updated successfully, but these errors were encountered: