admin管理员组

文章数量:1297050

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

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

Share Improve this question asked Jan 5, 2022 at 17:59 makemanbackmakemanback 511 silver badge2 bronze badges 1
  • 1 adding shamefully-hoist=true to my npmrc fixed it for me – crh225 Commented Jan 31, 2022 at 22:41
Add a ment  | 

1 Answer 1

Reset to default 9

Use the shamefully-hoist flag set to true.

pnpm i --shamefully-hoist=true

Or simply have this file in the same directory as your package.json or .npmrc file.

shamefully-hoist=true

shamefully-hoist docs.

本文标签: javascriptpnpm does not resolve dependenciesStack Overflow