Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 16.13 LTS is not allowed #1046

Closed
josokinas opened this issue Nov 14, 2021 · 2 comments · Fixed by #1047
Closed

Node 16.13 LTS is not allowed #1046

josokinas opened this issue Nov 14, 2021 · 2 comments · Fixed by #1047

Comments

@josokinas
Copy link

Description

Installation not allowing to use latest Node LTS version, that is used on our pipeline:

Screenshot 2021-11-14 at 09 35 49

Steps to reproduce

Switch to Node v16.13, and install as a dependency.

Debug Logs

N/A

Environment

  • OS: any
  • Node.js: v16.13
  • lint-staged: v12.0.1
@iiroj
Copy link
Member

iiroj commented Nov 14, 2021

Are you using the engine-strict flag in your npm config?

Are you sure it's the node version, and not npm? What's your npm version? I guess that can be downgraded.

EDIT: I tried downgrading to npm@7.0.0 and can reproduce this:

❯ NPM_CONFIG_ENGINE_STRICT=true npm install ~/git/lint-staged
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: lint-staged@0.0.0-development
npm ERR! notsup Not compatible with your version of node/npm: lint-staged@0.0.0-development
npm ERR! notsup Required: {"node":"^12.20.0 || ^14.13.1 || >=16.0.0","npm":">=8.1.3"}
npm ERR! notsup Actual:   {"npm":"7.0.0","node":"v16.13.0"}

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/iiro/.npm/_logs/2021-11-14T09_44_45_806Z-debug.log

iiroj added a commit that referenced this issue Nov 14, 2021
@iiroj iiroj linked a pull request Nov 14, 2021 that will close this issue
@iiroj
Copy link
Member

iiroj commented Nov 14, 2021

This should be fixed by installing lint-staged@12.0.2!

@iiroj iiroj closed this as completed Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants