pnpm
pnpm copied to clipboard
Error when installing new packages with `node-linker=hoisted`
pnpm version:
8.4.0
Code to reproduce the issue:
using node-linker=hoisted, it throws an error when trying to install a new package ENOENT: no such file or directory, scandir 'repo_path\node_modules\@web3modal\_tmp_33704_ac746402f34f09a14d20d6373a1f71a7\node_modules'
Expected behavior:
to install new packages successfully
Actual behavior:
it throws an error and exits
Additional information:
node -vprints: v18.16.0- Windows, macOS, or Linux?: windows
I wasn't able to reproduce. Can you create a repository on which it reproduces and provide the exact package that you install when it fails.
It's been installing for 6 minutes
@zkochan i created a new repo https://github.com/Mostafatalaat770/pnpm-error but now when I'm installing it I'm getting this error
EBUSY: resource busy or locked, rename 'path\pnpm-error\node_modules\_tmp_65304_70fe3c1b15a789bac18163ded694155e' -> 'path\pnpm-error\node_modules\js-sha3'
tried to delete node_modules, but I'm getting the same error but for different packages.
Edit: closed the other opened vscode window, and that error is gone.
I can't reproduce the error on the repo I sent, it happens on the private repo I can't share.
I could be able to fix this temporarily by installing the problematic package via npm and then importing the lock file using pnpm import. This can also be fixed by deleting node_modules or pnpm-lock.yaml and it works fine, but the error happens randomly later when trying to either remove or update or install a package.
it doesn't occur anymore, I will reopen it if it happens again or if I get more information.
This just started randomly popping up in one of the projects I'm working on. It comes up every time I want to update or install a new package. I used pnpm version 7, tried upgrading to 8.6.6 with no luck. And for me deleting node_modules doesn't help, the only way to install or update packages that is working is using npm i && pnpm import which is insanely stupid, since whats the point of pnpm than?
pnpm i
WARN deprecated @biconomy/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
WARN deprecated @json-rpc-tools/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
WARN deprecated @types/[email protected]: This is a stub types definition. react-native provides its own type definitions, so you do not need this installed.
WARN 11 deprecated subdependencies found: @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @babel/[email protected], @json-rpc-tools/[email protected], @motionone/[email protected], @npmcli/[email protected], [email protected]
WARN Issues with peer dependencies found
.
├─┬ @biconomy/account 4.1.1
│ ├─┬ @alchemy/aa-core 3.8.1
│ │ └── ✕ unmet peer [email protected]: found 2.9.20 in @biconomy/account
│ ├─┬ @biconomy/bundler 4.1.1
│ │ ├─┬ @alchemy/aa-core 3.8.1
│ │ │ └── ✕ unmet peer [email protected]: found 2.9.20 in @biconomy/bundler
│ │ └─┬ @biconomy/common 4.1.1
│ │ └─┬ @alchemy/aa-core 3.8.1
│ │ └── ✕ unmet peer [email protected]: found 2.9.20 in @biconomy/common
│ ├─┬ @biconomy/modules 4.1.1
│ │ └─┬ @alchemy/aa-core 3.8.1
│ │ └── ✕ unmet peer [email protected]: found 2.9.20 in @biconomy/modules
│ └─┬ @biconomy/paymaster 4.1.1
│ └─┬ @alchemy/aa-core 3.8.1
│ └── ✕ unmet peer [email protected]: found 2.9.20 in @biconomy/paymaster
└─┬ native-base 3.4.28
├─┬ @react-native-aria/button 0.2.7
│ └─┬ @react-stately/toggle 3.2.1
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
├─┬ @react-native-aria/checkbox 0.2.9
│ └─┬ @react-aria/checkbox 3.2.1
│ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
│ └─┬ @react-stately/checkbox 3.0.3
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
├─┬ @react-native-aria/radio 0.2.10
│ └─┬ @react-stately/radio 3.2.1
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
├─┬ @react-native-aria/slider 0.2.11
│ └─┬ @react-stately/slider 3.0.1
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
├─┬ @react-native-aria/tabs 0.2.10
│ ├─┬ @react-aria/tabs 3.0.0-alpha.2
│ │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
│ │ └─┬ @react-stately/tabs 3.0.0-alpha.0
│ │ ├── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
│ │ └─┬ @react-types/tabs 3.0.0-alpha.2
│ │ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
│ └─┬ @react-stately/tabs 3.0.0-alpha.1
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
├─┬ @react-stately/collections 3.3.0
│ └── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
└─┬ @react-stately/combobox 3.0.0-alpha.1
├── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
└─┬ @react-types/combobox 3.0.0-alpha.1
└── ✕ unmet peer react@"^16.8.0 || ^17.0.0-rc.1": found 18.2.0
Packages: +10 -31
++++++++++-------------------------------
ERR_PNPM_ENOENT ENOENT: no such file or directory, scandir 'C:\Repos\xx\node_modules\@walletconnect\ethereum-provider_tmp_12968\node_modules'
Progress: resolved 1760, reused 41, downloaded 0, added 7
it is still happening, the only solution is to delete node_modules and install it again, using [email protected].
This bug still exists in [email protected].