[ Error ] - NixOS - Corepack/Pnpm Version Mismatch/Internal Error
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 279
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
Issue:
When attempting to use Corepack with pnpm@9.0.0-alpha.5 on NixOS, the installation process encounters an error due to a version mismatch. This issue also arises when enabling Corepack, leading to an internal error related to symlink creation in a read-only file system.
Error Messages:
-
During pnpm installation:
$ corepack use pnpm@* ERR_PNPM_BAD_PM_VERSION This project is configured to use v9.0.0-alpha.5+sha256.9b9b9a4f189d3837e7cfcabed63ab7b4afa6844ed98c6e1705bd70d0d9bef60b of pnpm. Your current pnpm is v9.0.0 -
While enabling Corepack:
$ corepack enable Internal Error: EROFS: read-only file system, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/nix/store/HIDDEN-HASH-CODE-nodejs-20.11.1/bin/pnpm' Error: EROFS: read-only file system, symlink '../lib/node_modules/corepack/dist/pnpm.js' -> '/nix/store/HIDDEN-HASH-CODE-nodejs-20.11.1/bin/pnpm'
Steps to Reproduce NodeJS Unstable Installation:
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz -p nodejs
Steps to Reproduce:
-
Run the following commands to install pnpm:
corepack use pnpm@* -
Attempt to enable Corepack:
corepack enable
Environment Information:
- Operating System: NixOS
- Corepack Version: 0.23.0
- pnpm Version: 9.0.0-alpha.5
- NodeJS Version: v20.11.1
- Nixpkgs Version: nixos-unstable
Expected Behavior:
The installation of pnpm and enabling Corepack should proceed without version mismatches or errors related to read-only file systems.
Actual Behavior:
Errors are encountered during the installation of pnpm, enabling Corepack
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported commands, corepack use pnpm@* and corepack enable, in the specified Node.js 20.11.1 and NixOS environment. Investigate the pnpm version mismatch and the EROFS symlink failure; done means both commands complete without either reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nixos, node.js, typescript
- Domain
- build-system, devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100