Skip to content

Cannot install this package anymore! #438

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

Closed
alimd opened this issue Apr 20, 2025 · 9 comments
Closed

Cannot install this package anymore! #438

alimd opened this issue Apr 20, 2025 · 9 comments

Comments

@alimd
Copy link

alimd commented Apr 20, 2025

yarn init -2
➤ YN0000: · Yarn 4.9.1
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: · Done in 0s 37ms
yarn add -D eslint-plugin-import eslint-import-resolver-typescript [email protected]
➤ YN0000: · Yarn 4.9.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + eslint-import-resolver-typescript@npm:4.3.3, eslint-plugin-import@npm:2.31.0, eslint@npm:8.57.1, @emnapi/core@npm:1.4.3, and 239 more.
➤ YN0000: └ Completed in 3s 288ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ unrs-resolver@npm:1.6.1 must be built because it never has been before or the last one failed
➤ YN0009: │ unrs-resolver@npm:1.6.1 couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/59/ywrwz02d0jdgckn_y2vrjyj00000gn/T/xfs-33cf175c/build.log)
➤ YN0000: └ Completed
➤ YN0000: · Failed with errors in 3s 539ms
cat /private/var/folders/59/ywrwz02d0jdgckn_y2vrjyj00000gn/T/xfs-33cf175c/build.log
# This file contains the result of Yarn building a package (unrs-resolver@npm:1.6.1)
# Script name: postinstall

/Volumes/Alwatr/temp/ttt/.pnp.cjs:8745
      Error.captureStackTrace(firstError);
            ^

Error: napi-postinstall tried to access unrs-resolver, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: unrs-resolver (via "unrs-resolver/package.json")
Required by: napi-postinstall@npm:0.1.3 (via /Volumes/Alwatr/DevTools/yarn/berry/cache/napi-postinstall-npm-0.1.3-f13def3bad-10c0.zip/node_modules/napi-postinstall/lib/)

Require stack:
- /Volumes/Alwatr/DevTools/yarn/berry/cache/napi-postinstall-npm-0.1.3-f13def3bad-10c0.zip/node_modules/napi-postinstall/lib/index.js
- /Volumes/Alwatr/DevTools/yarn/berry/cache/napi-postinstall-npm-0.1.3-f13def3bad-10c0.zip/node_modules/napi-postinstall/lib/cli.js
    at require$$0.Module._resolveFilename (/Volumes/Alwatr/temp/ttt/.pnp.cjs:8745:13)
    at Function.<anonymous> (node:internal/modules/cjs/loader:1070:27)
    at require$$0.Module._load (/Volumes/Alwatr/temp/ttt/.pnp.cjs:8636:31)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1335:12)
    at require (node:internal/modules/helpers:136:16)
    at checkAndPreparePackage (/Volumes/Alwatr/DevTools/yarn/berry/cache/napi-postinstall-npm-0.1.3-f13def3bad-10c0.zip/node_modules/napi-postinstall/lib/index.js:101:11)
    at Object.<anonymous> (/Volumes/Alwatr/DevTools/yarn/berry/cache/napi-postinstall-npm-0.1.3-f13def3bad-10c0.zip/node_modules/napi-postinstall/lib/cli.js:5:44)
    at Module._compile (node:internal/modules/cjs/loader:1562:14)

Node.js v22.13.1
@JounQin
Copy link
Collaborator

JounQin commented Apr 20, 2025

Please provide a valid reproduction.

@alimd
Copy link
Author

alimd commented Apr 20, 2025

Please provide a valid reproduction.

updated

@JounQin
Copy link
Collaborator

JounQin commented Apr 20, 2025

I mean a GitHub repo.

@alimd
Copy link
Author

alimd commented Apr 20, 2025

I mean a GitHub repo.

I’ve created a completely new project using yarn init -2. Why don’t you believe me? Everyone is facing this issue right now!

@JounQin
Copy link
Collaborator

JounQin commented Apr 20, 2025

It's not believe or not, I need a repo to run on GitPod.io, a good reproduction is a repo, not commands.

@alimd
Copy link
Author

alimd commented Apr 20, 2025

Instead of asking foolish questions, could you please open a terminal and type this instead?

yarn init -2
yarn add -D eslint-plugin-import eslint-import-resolver-typescript [email protected]

@JounQin
Copy link
Collaborator

JounQin commented Apr 20, 2025

Image

@alimd Should be fixed by https://github.com/un-ts/napi-postinstall/releases/tag/v0.1.5

@JounQin JounQin closed this as completed Apr 20, 2025
@alimd
Copy link
Author

alimd commented Apr 20, 2025

Image [@alimd](https://github.com/alimd) Should be fixed by https://github.com/un-ts/napi-postinstall/releases/tag/v0.1.5

yessssss, fixed finally 🎉
thank youuuu

@JounQin
Copy link
Collaborator

JounQin commented Apr 20, 2025

Thanks for your reporting and patience.

By the way, you can replace eslint-plugin-import with modern eslint-plugin-import-x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants