pnpm install exact version

Created on 29 Jan 2019  路  4Comments  路  Source: pnpm/pnpm

pnpm version: 2.25.5

Code to reproduce the issue:

pnpm install @types/[email protected]

Expected behavior:

The @types/react version in package.json should be 16.7.20 exactly

Actual behavior:

A caret is prepended to the version in package.json (eg: ^16.7.20).

When I explicitly declare the version, it should use exactly what I give it, no?

Same with pnpm install @types/react@~16.7.20, which currently uses ^16.7.20 instead.

Note: The version that's actually installed is correct. Only the package.json version is incorrect.

Note: The same issue occurs for non-scoped packages, too.

Note: The shrinkwrap.yaml file also has this issue in its specifiers field.

Additional information:

  • node v11.7.0
  • macOS v10.14.3
breaking change

All 4 comments

The current behavior was copied from npm. I agree that it would make more sense to preserve the specs.

@vjpr you were asking about this as well

Good to see this happening!

:ship: 3.0.0-alpha.2 (dist-tag: next-major)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KSXGitHub picture KSXGitHub  路  3Comments

andreineculau picture andreineculau  路  3Comments

mtford90 picture mtford90  路  4Comments

andreineculau picture andreineculau  路  5Comments

jsumners picture jsumners  路  4Comments