npm Community Forum (Archive)

The npm community forum has been discontinued.

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

How can pre-run performance be improved?

When running scripts such as gulp or anything else through npm run, it takes a long time to start running the script.
For example, gulp tasks often take 5 to 10 seconds to output something like “Finished task after 10ms”.
I don’t think this is really an issue with gulp.
I assume it is to do with initializing the code for node and so grows with larger code bases.

What can be done about this?
Potential ideas(caching, server-like script that is always in memory)