requires a peer of eslint@2.x - 4.x but none was installed
See original GitHub issue#916 Still happens with 2.8.0…
~/ sudo npm -g update eslint-plugin-import
- ms@0.7.1 node_modules/eslint-plugin-import/node_modules/eslint-module-utils/node_modules/ms
- debug@2.2.0 node_modules/eslint-plugin-import/node_modules/eslint-module-utils/node_modules/debug
- object-assign@4.1.1 node_modules/eslint-plugin-import/node_modules/object-assign
- pkg-up@1.0.0 node_modules/eslint-plugin-import/node_modules/pkg-up
/usr/lib
├── UNMET PEER DEPENDENCY eslint@2.x - 4.x
└── eslint-plugin-import@2.8.0
npm WARN eslint-plugin-import@2.8.0 requires a peer of eslint@2.x - 4.x but none was installed.
~/ sudo npm -g list eslint eslint-plugin-import
/usr/lib
├── eslint@4.14.0
└── eslint-plugin-import@2.8.0
Could someone fix this for once and all?
It’s totally brain damaging to have a module that requires some version of another module but throws exceptions like this, while the “actual intended” version of that module IS available… 🙄
I guess you need to use eslint: '>=2 <=4',
see: semver-ranges
Another note: Why is the next version numbered lower as the latest? 😕
~/ sudo npm -g view eslint-plugin-import
{ name: 'eslint-plugin-import',
description: 'Import with sanity.',
'dist-tags': { latest: '2.8.0', next: '2.0.0-beta.1' },
versions:
......
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
requires a peer of eslint@2.x - 4.x but none was installed #989
x but none was installed. ... Could someone fix this for once and all? ... ~/ sudo npm -g view eslint-plugin-import { name:...
Read more >How to fix the peer dependencies Installation problem
You must install peer dependencies yourself. npm WARN eslint-config-react-app@4.0.1 requires a peer of eslint@5.x but none is installed.
Read more >eslint/eslint - Gitter
npm WARN eslint-plugin-react@6.10.3 requires a peer of eslint@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
Read more >you must install peer dependencies yourself Code Example
npm WARN codelyzer@6.0.1 requires a peer of tslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. typescript by devops ......
Read more >automatically install peer dependencies - You.com | The AI ...
"A requires a peer of B but none was installed". Consider it as "A requires one of B's peers but that peer was...
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 Free
Top 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
No, used by 1000 projects means you should have 1000 local installs - that way each project as all its dependencies easily reproducible, and version-tracked.
In general, nothing should be globally installed.
LMFAO, then go persuade the node+npm makers to remove the option to install globally… <smacks back of your head> /signoff from thread