Re-run pnpm install, this time it will use the shrinkwrap.yaml
Expected behavior:
Everything installs correctly.
Actual behavior:
PNPM does not use the relative path:
Error, could not find file:
Z:/projects/foo.tgz
I did some digging and I believe this is caused by the packages/resolution/tarball field not being a relative path. Additionally, it appears that the specifiers needs to NOT have a relative path (otherwise the dependency field, which is NOT using a relative path, does not match anything in the shrinkwrap and it tries to find the tgz at that location).
pnpm version: 1.10.2
Code to reproduce the issue:
Create a package.json file referencing some local .TGZ files, e.g.:
Z:/project/package.json
:Run
pnpm install
. Everything succeeds.Re-run
pnpm install
, this time it will use theshrinkwrap.yaml
Expected behavior:
Everything installs correctly.
Actual behavior:
PNPM does not use the relative path:
I did some digging and I believe this is caused by the
packages/resolution/tarball
field not being a relative path. Additionally, it appears that thespecifiers
needs to NOT have a relative path (otherwise thedependency
field, which is NOT using a relative path, does not match anything in the shrinkwrap and it tries to find the tgz at that location).Additional information:
node -v
prints:v6.10.2
Windows