Skip to content
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

Script not working for x86_64-apple-darwin #7

Open
StreamSurfer opened this issue Feb 17, 2024 · 4 comments
Open

Script not working for x86_64-apple-darwin #7

StreamSurfer opened this issue Feb 17, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@StreamSurfer
Copy link

I'm getting the following error when trying to install the package using yarn.

error Couldn't find package "@minify-html/[email protected]" required by "@minify-html/node@^0.15.0" on the "npm" registry

I'm using x86_64-apple-darwin. I tried using export TARGET=x86_64-apple-darwin but no luck. Thank you.

@rdwz rdwz self-assigned this Feb 17, 2024
@rdwz rdwz added the bug Something isn't working label Feb 17, 2024
@shawnvanderveer
Copy link

Hey there,

I encountered the same error while trying to deploy to Vercel using yarn. It looks like the package @minify-html/[email protected], required by @minify-html/node@^0.15.0, isn't available on the npm registry for the x86_64-apple-darwin architecture.

I initially faced this issue too but later realized it was because astro-min doesn't work well with SSR (Server-Side Rendering) or hybrid outputs in Astro, especially when deploying with Vercel. Since I'm using pnpm and a Turbo repo, I had to double-check my Astro configuration. Make sure you have prerender: true set in your Astro components or that your project's build output is set to static. Adjusting these settings helped resolve the deployment issue on Vercel in my case.

@RaulCatalinas
Copy link

I have the same problem, I have configured my Astro project in "static" mode, I'm using bun as package manger and Windows as OS (in case it influences something).

here's the error message in case it's helpful

Command failed with exit code 1: bun add astro-min@^1.2.6
bun add v1.1.3 (2615dc74)
 Resolving dependencies

error: package "@minify-html/node-linux-arm64" not found registry.npmjs.org/@minify-html%2fnode-linux-arm64 404

error: package "@minify-html/node-darwin-arm64" not found registry.npmjs.org/@minify-html%2fnode-darwin-arm64 404   
 Resolved, downloaded and extracted [19]
error: @minify-html/[email protected] failed to resolve
error: @minify-html/[email protected] failed to resolve

Astro could not update your astro.config.js file safely.
Reason: Unable to install dependencies

@rdwz
Copy link
Contributor

rdwz commented May 8, 2024

It's working again, with v1.3.1 😎

The arm64 versions are somehow not available on npm registry, but just bun seems to request all optional packages. So right now it only won't build, if you actually have an apple arm device. I couldn't get a macos runner to build them, at least not yet.. and there will be some more improvement soon 😃

@shawnvanderveer I also noticed that, strange pnpm behaves diffrent on local machine and on vercel..

@maxchang3
Copy link

maxchang3 commented Aug 20, 2024

There is no @minify-html/node-darwin-arm64 package on npm. The package was mistakenly published as @minify-html/node-darwin-aarch64. (wilsonzlin/minify-html#172)

However, the corrected version has not yet been released.

As a temporary workaround for arm64 macOS, add the following to your package.json.

"@minify-html/node-darwin-arm64": "npm:@minify-html/node-darwin-aarch64@^0.15.0",

then pnpm install (I use pnpm)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants