npm Community Forum (Archive)

The npm community forum has been discontinued.

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

Project specific NPM Wrapper

Hi,

we’ve been encountering troubles in our development when using NPM because different Devs have different NPM versions installed and all that on different OSes.

My thought was that we could have an per project npm-wrapper file that would be used instead of the global npm (basically the same as Gradle does it with the Gradle-Wrapper https://docs.gradle.org/current/userguide/gradle_wrapper.html).

Does anybody know of an existing solution to that? Or any effort to do a similar thing?

Thank you for your help.

Olivier


I’ve build this as an example: https://gist.github.com/oliviernt/58d5c4badd76120ec436cac6c12d4180