Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

228
Views
What is a quick way to know if an npm sub dependencies is upgradable?

I'm looking for a way to find if a sub-dependencies is upgradable so I can upgrade that dependency in my consumer app. If I do npm list P3 I get something like this

P1@1.0.0
|__P2@1.0.0
|__|__P3@1.0.0

What I want to see is if P3 is upgradable from P2, ie if P2 lists dependencies P3 like so

{ // P2's package.json
   "dependencies": {
       "P3": "^1.0.0"
   }
}

What I want to see is that ^so I don't have to dig into P2's package.json to look for it. I know this looks like a quick thing to do but for a big dependencies list with really deep sub-dependencies, these are tedious to find. is there anything that I can run that will show me dependencies tree and version number with ^ or ~ ? I know I can run npm view to see dependencies, but that still take too long, basically I'm just really lazy =]

Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!