question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"lint-staged requires at least version 6 of Node" on Node v10

See original GitHub issue

Description

lint-staged requires at least version 6 of Node, please upgrade

I am on the (very new) Node version 10.0.0.

Steps to reproduce

Install lint-staged 7.0.4 and Node 10.0.0 and attempt to use lint-staged e.g. in a precommit hook.

Debug Logs

$ ./node_modules/.bin/lint-staged --debug
lint-staged requires at least version 6 of Node, please upgrade

Environment

  • OS: macOS High Sierra
  • Node.js: v10.0.0
  • lint-staged: v7.0.4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:24
  • Comments:29

github_iconTop GitHub Comments

51reactions
jesstelfordcommented, May 1, 2018

For future googlers:

The fix for node v10 is to update lint-staged to ^7.0.5

yarn add --dev lint-staged@^7.0.5

or

npm install --dev lint-staged@^7.0.5
34reactions
animaonlinecommented, May 7, 2018

@jesstelford’s fix doesn’t work for me, I had to do this:

git commit --no-verify -m "commit messsage"

Read more comments on GitHub >

github_iconTop Results From Across the Web

lint-staged - npm
Since v13.0.0 lint-staged no longer supports Node.js 12. Please upgrade your Node.js version to at least 14.13.1 , or 16.0.0 onward.
Read more >
lint-staged not running on precommit - Stack Overflow
This is the relevant section of my package. json file: "scripts": { "precommit": "lint-staged" }, "lint-staged": { "*. {js,json,css,scss,html, ...
Read more >
Lint-staged-offline NPM
Run linters against staged git files and don't let :poop: slip into your code base! The latest versions of lint-staged require Node.js v6...
Read more >
Husky + Lint-Staged on a React TypeScript Project
Node.js:You need Node version >= 10 installed. ... Last, Husky needs to call the lint-staged as an action now, to activate our ...
Read more >
Diving into Husky and Lint-staged | Laurie on Tech
Last week I talked about ESLint and its usefulness for keeping projects consistent amongst multiple contributors. If you haven't read that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found