Giter Club home page Giter Club logo

Comments (8)

zkochan avatar zkochan commented on June 18, 2024 4

Sorry, we forgot to document it. You can disable it by setting package-manager-strict to false

from pnpm.

vsubbotskyy avatar vsubbotskyy commented on June 18, 2024 3

I'm confused with the minor versions strict check. In my understanding this is not how semantic versioning works. So at least having the flag would be great.

from pnpm.

Shinigami92 avatar Shinigami92 commented on June 18, 2024 2

I'm confused with the minor versions strict check. In my understanding this is not how semantic versioning works. So at least having the flag would be great.

The issue with packageManager is that it does not check for semver at all but always uses exact matching. This is not a problem by pnpm, but how the committee decided to implement packageManager.
https://nodejs.org/api/packages.html#packagemanager

However, while corepack just picks the correct needed package manager, pnpm now fails hardly when the "wrong" pnpm version is installed on the computer 😕 and this is annoying, especially when using multiple projects with different packageManager values

from pnpm.

Shinigami92 avatar Shinigami92 commented on June 18, 2024

How do I use it?

pnpm install --package-manager-strict false

does not work 🤔
and results in

Unknown option: 'package-manager-strict'
Did you mean 'engine-strict'? Use "--config.unknown=value" to force an unknown option.

from pnpm.

ST-DDT avatar ST-DDT commented on June 18, 2024

See linked PR. There is an ENV property to set, other than the package.json field.

from pnpm.

Shinigami92 avatar Shinigami92 commented on June 18, 2024

I did salsita/node-pg-migrate#1105 for now, but I would prefer if it is possible to also do via CLI flag

from pnpm.

zkochan avatar zkochan commented on June 18, 2024

You can do pnpm install --config.package-manager-strict=false

from pnpm.

Shinigami92 avatar Shinigami92 commented on June 18, 2024

You can do pnpm install --config.package-manager-strict=false

This works on direct terminal (pnpm install --config.package-manager-strict=false) ✅,
but not when I wrap inside a package.json script 👀

e.g.

{ 
  "scripts": {
    "preflight": "pnpm install --config.package-manager-strict=false && run-s format lint build"
  }
}

pnpm run preflight

from pnpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.