Achieve “npm run x” behavior without a “scripts” entry?
Note: This answer addresses the OP’s specific use case: calling the CLIs of dependent packages in the context of a given project; it is not about making CLIs globally available – see bottom for a discussion. tl;dr: On Unix-like platforms, prepend npm run env — to your command; e.g.: npm run env — mocha –recursive … Read more