-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bug: pnpm install fails ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND #56
Comments
As I tested. pnpm and yarn@v1 would fail in installation. npm and bun works fine. |
Thanks for the report. pnpm and Yarn do strange things with dependencies to try to "optimize", which can cause problems. Please try the suggested settings in our README and let me know if that helps: |
Adding the suggestions for pnpm reprocorepack enable pnpm
cd $(mktemp -d)
cat > .npmrc <<EOT
auto-install-peers=true
node-linker=hoisted
EOT
corepack use pnpm@10.4.1
pnpm add @eslint/css@0.4.0 |
For comparison Yarn Classic reprofails: corepack enable yarn
cd $(mktemp -d)
corepack use yarn@1
yarn add @eslint/css@0.4.0 Yarn (Modern) reprono failure: corepack enable yarn
cd $(mktemp -d)
corepack use yarn@4
yarn add @eslint/css@0.4.0 |
I’m also encountering this issue when trying to install
the installation still fails with:
Environment:
I also enabled |
As a feasibility exercise I forked the repo and added a workflow https://github.com/MikeMcC399/css/blob/prime/.github/workflows/ci-build-all-pm.yml which builds the package and then installs it on different package managers https://github.com/MikeMcC399/css/actions/runs/13432882751 is an example run which shows where it fails: I don't know if this should be part of the regular CI. It would be unusual for npm packages to be tested like this. We should cover this in a separate issue if you want to follow up. |
@MikeMcC399 thanks! I think that's something we can consider. I'd say go ahead and send a PR as I think that's helpful. So looking at this a bit closer, it looks like pnpm interprets It also seems like this was a bug in Yarn as the most recent version doesn't exhibit this behavior. Maybe we can just ask people to upgrade their Yarn if they run into this problem? |
I'll monitor this issue.
|
Just as a heads-up: We're going to be creating our own fork of CSSTree that will bundle its own types, so we'll be able to move away from this |
That sounds like a good decision! You can ignore my comment in the Yarn v1 issue in that case 🙂 |
Environment
ESLint version: N/A
@eslint/css version:
0.4.0
Node version:
v22.14.0
LTSpnpm version:
10.4.1
Operating System: Ubuntu 24.04.2 LTS
This is a regression from @eslint/css version:
0.2.0
Also reproducible on @eslint/css version:
0.3.0
Also reproducible with
pnpm@10.5.0
Installations using Yarn 1 Classic
v1.22.22
are also failing.Which language are you using?
N/A
What did you do?
What did you expect to happen?
pnpm should install without error
What actually happened?
ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND
Link to Minimal Reproducible Example
See above for short repro steps ⬆
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: