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.

dependency mismatch between github and npm

See original GitHub issue

šŸ› Bug Report

jest-environment-jsdom@24.9.0 installs old jsdom 11.12.0 that includes left-pad@1.3.0

in github seems to be fixed, but in practice the version installed is still the one above, not the one in the package.json on github

To Reproduce

mkdir test-jestjsdom cd jestjsdom npm init --yest npm i -D jest npm ls left-pad

Expected behavior

no left-pad to appear as a dependency

envinfo


  System:
    OS: macOS 10.15.1
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
  Binaries:
    Node: 13.1.0 - ~/.nvm/versions/node/v13.1.0/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.13.0 - ~/.nvm/versions/node/v13.1.0/bin/npm
  npmPackages:
    jest: ^24.9.0 => 24.9.0 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
ashnurcommented, Nov 15, 2019

@markdingram Thank you, I appreciate both your and @thymikeeā€™s time that you put into answering me in this issue. Though, there seems to be a misunderstanding. No amount of detail about the past answers my question, because it is about the future. My question is, what is my solution? We are in the second part of November, end of Fall. This change was introduced a season ago, at the end of August. It seems bizarre to me that millions of jest users still use left-pad because ā€œthe patch missed the releaseā€. You seem to consider these things as something out of your power, like the weather. But it is not the weather, itā€™s software, the thing we created exactly because itā€™s malleable. So please tell me, what is my solution here? Waiting for the weather to change and the release to arrive is not a solution, is the opposite of a solution šŸ˜ƒ

P.S. I tried 25.0.0 which btw I think worked more or less on linux, but on catalina it didnā€™t even install, probably for reasons not even related to jest. My overall frustration - if detectable - has nothing to do with this current issue, donā€™t take me too seriously.

1reaction
ashnurcommented, Nov 13, 2019

Well, itā€™s a bug to get a different thing than what you are promised - or thatā€™s what I thought. And I wasnā€™t sure what else I could say it is? I also do not get you answer, whatā€™s the solution here for me?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependency name mismatches in package.json for git ...
I'm opening this issue because: [ x ] npm is producing an incorrect install. What's going wrong? If a github dependency's name doesn't...
Read more >
Installing a package with a mismatching peer dependency ...
I'm opening this issue because: npm is crashing. npm is doing something I don't understand. npm is producing incorrect or undesirableĀ ...
Read more >
Mismatch package version between NPM and Github #1759
I downloaded the latest version 16.1.0 because I am expecting to use this specific commit: 4817a6b#diff-3077b2e090cd9baca8d3b203af907422 ButĀ ...
Read more >
Updating git dependency urls does not work #1727 - GitHub
Currently npm does not notice when the version reference of a previously installed package is upgrade to a git url. So in order...
Read more >
dependency version mismatch in `instrumentation-express`
What version of OpenTelemetry are you using? @opentelemetry/api: 1.1.0 @opentelemetry/sdk-node: 0.29.0Ā ...
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