npm Community Forum (Archive)

The npm community forum has been discontinued.

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

Have npm globally install OS specific executables

It would be great to use something like pkg (https://github.com/zeit/pkg) to package up code as a single binary with baked in environment variables for specific targets (linux, macos, windows) and upload those to NPM. Then when the user wants to globally install the executable, they get their OS flavor only.