Reproduction of a bug with Rush + pnpm: microsoft/rushstack#1142
The bug is that [email protected] is installed, despite [email protected] being declared in pnpm-lock.yaml:
$ npm install --global @microsoft/rush
$ rush install
$ cat common/temp/node_modules/.registry.npmjs.org/react-focus-lock/1.19.1/node_modules/react-focus-lock/package.json
{
"name": "react-focus-lock",
"version": "1.19.1",
"description": "It is a trap! (for a focus)",
...
This bug seems not to occur when using pnpm without Rush. I've copied common/temp/package.json
and common/config/rush/pnpm-lock.yaml
into a directory pnpm-only/
and removed all references to "mypackage.tgz". Perform the install using just pnpm:
$ cd pnpm-only/
$ npm install --global [email protected]
$ pnpm install
$ cat node_modules/.registry.npmjs.org/react-focus-lock/1.17.7/node_modules/react-focus-lock/package.json
{
"name": "react-focus-lock",
"version": "1.17.7",
"description": "It is a trap! (for a focus)",
...