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

Unable to install winston-redis 3.1.0 with redis 3.1.2 (want 2.8.0) #40

Open
nioc opened this issue Jul 2, 2021 · 3 comments
Open

Unable to install winston-redis 3.1.0 with redis 3.1.2 (want 2.8.0) #40

nioc opened this issue Jul 2, 2021 · 3 comments

Comments

@nioc
Copy link

nioc commented Jul 2, 2021

When installing:

$ npm install winston-redis
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/redis
npm ERR!   redis@"^3.1.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer redis@"^2.8.0" from [email protected]
npm ERR! node_modules/winston-redis
npm ERR!   winston-redis@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

After removing redis, I saw the winston-redis package.json use older version of redis (2.8.0) :

{
  "name": "winston-redis",
  "description": "A fixed-length Redis transport for winston",
  "version": "3.1.0",
  "author": "Charlie Robbins <[email protected]>",
  "repository": {
    "type": "git",
    "url": "[email protected]:winstonjs/winston-redis.git"
  },
  "keywords": [
    "logging",
    "sysadmin",
    "tools",
    "winston",
    "redis"
  ],
  "dependencies": {
    "async": "^2.6.1",
    "lodash": "^4.6.1",
    "winston-transport": "^4.2.0"
  },
  "devDependencies": {
    "abstract-winston-transport": "^0.5.1",
    "mocha": "^5.2.0",
    "redis": "^2.8.0"
  },
  "peerDependencies": {
    "redis": "^2.8.0",
    "winston": "^3.0.0"
  },
  "main": "./lib/winston-redis",
  "scripts": {
    "test": "mocha test/*-test.js --exit"
  },
  "engines": {
    "node": ">=8.11.x"
  },
  "license": "MIT"
}
@NastyaSmirnova
Copy link

Any solution for this issue?

@nioc
Copy link
Author

nioc commented Jul 14, 2022

@NastyaSmirnova not for me, unfortunately.

@NastyaSmirnova
Copy link

At least we can go with --legacy-peer-deps ...
But still interested in answers from creators

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants