Package.json in node_modules listing different versions of a dependency - which gets used?

115
August 12, 2021, at 9:30 PM

I am trying to upgrade cordova CLI from 9.0.0 to 10.0.0 and everything is failing to compile. I'm thinking it might have to do with the following breaking devDependency bumps with 10.0.0:

  • mock-stdin@^1.0.0
  • nyc@^15.1.0
  • rewire@^5.0.0

I don't have these as listed dependencies in my project's package.json, but the package.jsons inside the packages I installed in node_modules reference these dependencies, and most of them list versions that are older than required. I have a few questions about this:

  • Do the dependencies from package.jsons inside node_modules get installed and used in the first place? If so, which version gets installed when there are multiple packages referencing different versions?
  • Is there a way to get the packages inside node_modules to use a different version of a dependency than what was specified in their package.json? I tried manually installing the right version and that does not seem to do anything
  • Is it even problematic that the packages in node_modules are referencing outdated dependencies?
Rent Charter Buses Company
READ ALSO
Correctly synchronizing/locking access to an ArrayList

Correctly synchronizing/locking access to an ArrayList

I am working on my first Spring-Boot application, after not touching Java in agesBelow is one of my classes

154
Webview google login not showing accounts on device

Webview google login not showing accounts on device

I have a progressive web app and I'm trying to create a simple app for it that has a WebView that is showing the PWA

166
Iterate through JSON String in PHP?

Iterate through JSON String in PHP?

it seems to be a really easy question, but I am a little bit struggling: I am receiving a JSON String via JavaScriptNow I would like to iterate through the element

161