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

245
Views
Does running an npm package with npx cause devDependencies to get installed?

I'm finding it difficult to get a clear answer to this on the web. When you run a command in a package with npx (eg, npx mypackage sayhello), are the devDependencies within that package installed? I'm guessing yes, but not certain.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

npx is just a tool that allows you to execute packages without having to install them globally (npx doesn't install packages). npx is just used for executing packages from the npm registry.

npx does install the packages however only for temporary use.

$ npx pm2
Need to install the following packages:
  pm2
Ok to proceed? (y) y
...
...

$ npm ls -g
/home/user/.node/
+-- npm@7.19.1
`-- typescript@4.3.5

You can even check out this answer for more details

Where does NPX store binaries after installation?

over 4 years ago · Santiago Trujillo Report

0

I have just tested this, and it appears the answer is: no.

over 4 years ago · Santiago Trujillo Report
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!