Giter Club home page Giter Club logo

lintier's Issues

Setup fails due to eslint-plugin-import@"^2.25.3" from [email protected] dependency error

Hey,

it seems like the e2e test work fine but npx linter fails on a fresh project that just had npm init run before.
The error is that it seems that eslint-plugin-import and eslint-config-airbnb-typescript can fully resolve the dependencies.

Edit: When using yarn yarn init and then ending a random dep so that yarn.lock is created npx linter works without any issues, seems to be an npm issue?
Log:

PS A:\Git\Notification-Bot> npx lintier
? Install which plugins? Node
? Install AirBnb Style Guide Config? Yes
? Install lint-staged? Yes
โœ” Installing dependencies...
/ Installing airbnb...Error: Command failed with exit code 1: npm install eslint-config-airbnb-typescript -E -D
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/eslint-plugin-import
npm ERR!   dev eslint-plugin-import@"2.25.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-import@"^2.25.3" from [email protected]
npm ERR! node_modules/eslint-config-airbnb-typescript
npm ERR!   dev eslint-config-airbnb-typescript@"*" 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.
npm ERR!
npm ERR! See C:\Users\Artur\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Artur\AppData\Local\npm-cache\_logs\2022-04-16T12_25_21_182Z-debug-0.log
    at makeError (C:\Users\Artur\AppData\Local\npm-cache\_npx\c474b1945def7d56\node_modules\execa\lib\error.js:59:11)
    at handlePromise (C:\Users\Artur\AppData\Local\npm-cache\_npx\c474b1945def7d56\node_modules\execa\index.js:114:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  shortMessage: 'Command failed with exit code 1: npm install eslint-config-airbnb-typescript -E -D',
  command: 'npm install eslint-config-airbnb-typescript -E -D',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: 'npm ERR! code ERESOLVE\n' +
    'npm ERR! ERESOLVE unable to resolve dependency tree\n' +
    'npm ERR! \n' +
    'npm ERR! While resolving: [email protected]\n' +
    'npm ERR! Found: [email protected]\n' +
    'npm ERR! node_modules/eslint-plugin-import\n' +
    'npm ERR!   dev eslint-plugin-import@"2.25.2" from the root project\n' +
    'npm ERR! \n' +
    'npm ERR! Could not resolve dependency:\n' +
    'npm ERR! peer eslint-plugin-import@"^2.25.3" from [email protected]\n' +
    'npm ERR! node_modules/eslint-config-airbnb-typescript\n' +
    'npm ERR!   dev eslint-config-airbnb-typescript@"*" from the root project\n' +
    'npm ERR! \n' +
    'npm ERR! Fix the upstream dependency conflict, or retry\n' +
    'npm ERR! this command with --force, or --legacy-peer-deps\n' +
    'npm ERR! to accept an incorrect (and potentially broken) dependency resolution.\n' +
    'npm ERR! \n' +
    'npm ERR! See C:\\Users\\Artur\\AppData\\Local\\npm-cache\\eresolve-report.txt for a full report.\n' +
    '\n' +
    'npm ERR! A complete log of this run can be found in:\n' +
    'npm ERR!     C:\\Users\\Artur\\AppData\\Local\\npm-cache\\_logs\\2022-04-16T12_25_21_182Z-debug-0.log',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
\ Installing airbnb...Terminate batch job (Y/N)? y

I have tried to manually rerun the commands with --force without any success.

Regards,
Artur

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.