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

Yarn install Packing the package failed exit code 1 #159

Closed
guillempuche opened this issue Feb 27, 2024 · 2 comments · Fixed by #160
Closed

Yarn install Packing the package failed exit code 1 #159

guillempuche opened this issue Feb 27, 2024 · 2 comments · Fixed by #160
Labels
bug Something isn't working

Comments

@guillempuche
Copy link

I add this line "wa-sqlite": "github:rhashimoto/wa-sqlite#semver:^0.9.8" to dependencies in package.json.

I'm using Yarn PnP.

My terminal:

yarn install                                                                                                                                    1 ↵
➤ YN0000: · Yarn 4.1.0
➤ YN0000: ┌ Resolution step
➤ YN0058: │ wa-sqlite@https://github.com/rhashimoto/wa-sqlite.git#commit=390744d41c61aa0bbd53d3c738abef5e23f71cc4: Packing the package failed (exit code 1, logs can be found here: /private/var/folders/ys/spt316fs5sxck01gjy40s1rc0000gn/T/xfs-116092da/pack.log)
➤ YN0000: └ Completed in 7s 917ms
➤ YN0000: · Failed with errors in 7s 924ms

Logs:

Packing wa-sqlite@https://github.com/rhashimoto/wa-sqlite.git#commit=390744d41c61aa0bbd53d3c738abef5e23f71cc4 from sources
Using Yarn for bootstrap. Reason: "__metadata" key found in yarn.lock

➤ YN0036: Calling the "prepack" lifecycle script
➤ YN0000: wa-sqlite@workspace:. STDERR make: *** No rule to make target `tmp/obj/dist/sqlite3.o', needed by `dist/wa-sqlite.mjs'.  Stop.
➤ YN0036: Prepack script failed (exit code 2, logs can be found here: /private/var/folders/ys/spt316fs5sxck01gjy40s1rc0000gn/T/xfs-76bcc0d5/prepack.log); run yarn prepack to investigate
➤ YN0000: Failed with errors in 0s 10ms
@rhashimoto rhashimoto added the bug Something isn't working label Feb 27, 2024
@rhashimoto
Copy link
Owner

That's weird. Not sure how this ever worked properly (maybe it didn't). A (rather annoying) workaround is to provide a build environment.

I'll try to fix it this week.

@guillempuche
Copy link
Author

Great Roy, yarn add wa-sqlite@github:rhashimoto/wa-sqlite#v0.9.12 works well!

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

Successfully merging a pull request may close this issue.

2 participants