Git Product home page Git Product logo

Comments (12)

zkochan avatar zkochan commented on June 25, 2024 3

Because v8 ignored the packageManager field. v9 uses it by the spec.

from pnpm.

Stanzilla avatar Stanzilla commented on June 25, 2024 3

Because v8 ignored the packageManager field. v9 uses it by the spec.

is there a chance we can configure this to be less strict? people will often update their package manager (or not) and if they are not using corepack, it won't be done automatically and I don't really want to manually bump the version all the time? Or can it at least work with newer versions? Or only be strict when the patch/major version changes?

from pnpm.

zkochan avatar zkochan commented on June 25, 2024 1

The packageManager field only accepts exact versions. This is invalid: "packageManager": ">[email protected]",

from pnpm.

zkochan avatar zkochan commented on June 25, 2024 1

I don't get it. If you don't want to use the packageManager field by the spec, why don't you just remove it? I don't see how pnpm/action-setup should be changed for this.

from pnpm.

zkochan avatar zkochan commented on June 25, 2024 1

Even if you don't remove it, you can put package-manager-strict=false in .npmrc in the root of your project.

from pnpm.

Ciejo avatar Ciejo commented on June 25, 2024

The packageManager field only accepts exact versions. This is invalid: "packageManager": ">[email protected]",

With version 8.x.x works just fine. I will try putting specific version.

from pnpm.

zkochan avatar zkochan commented on June 25, 2024

If you want something less strict, then use the engines.pnpm field instead, which accepts ranges. The packageManager field is designed like this by the corepack team.

from pnpm.

weyert avatar weyert commented on June 25, 2024

from pnpm.

zkochan avatar zkochan commented on June 25, 2024

You can disable this check by setting package-manager-strict to false, or changing the COREPACK_ENABLE_STRICT env varible to 0

from pnpm.

Stanzilla avatar Stanzilla commented on June 25, 2024

If you want something less strict, then use the engines.pnpm field instead, which accepts ranges. The packageManager field is designed like this by the corepack team.

thanks! looks like that is not suported by https://github.com/pnpm/action-setup/ but I can file a ticket over there

from pnpm.

zkochan avatar zkochan commented on June 25, 2024

Related PR: #7960

from pnpm.

Stanzilla avatar Stanzilla commented on June 25, 2024

I don't get it. If you don't want to use the packageManager field by the spec, why don't you just remove it? I don't see how pnpm/action-setup should be changed for this.

I was just saying that it would be cool if it also supported the engines.pnpm field

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.