npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

More dependency options - runtime and build

I am working on some node projects where I develop in one environment, build in another, and run it in a third. For various reasons, some of the packages that I use during runtime are not able to be installed on my development machine. Clearly I also don’t need many development dependencies during run or build time.

Adding a runDependency and buildDependency option to package.json would enable much more fine grained control of packages that are installed and alleviate issues when certain packages only install on certain systems.