"lint-staged requires at least version 6 of Node" on Node v10
See original GitHub issueDescription
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:
- Created 5 years ago
- Reactions:24
- Comments:29
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For future googlers:
The fix for node v10 is to update
lint-staged
to^7.0.5
or
@jesstelford’s fix doesn’t work for me, I had to do this:
git commit --no-verify -m "commit messsage"