node.jsnpmnpxbuild-dependencies

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.


Solution

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