pnpm does not resolve dependencies

Viewed 833

I have my package.json file and if I'm installing all dependencies with npm i - everything is ok, but if I'm using pnpm i I have exception TypeError: Cannot read property 'uid' of undefined. I do not use this library, I tried to install it manually but with pnpm i uid it does not work, only with npm i uid

1 Answers

Use the shamefully-hoist=true flag pnpm i --shamefully-hoist=true.

Or simply have this file on the same level as your package.json

/.npmrc

shamefully-hoist=true
Related