thecodingmachine / nodejs-installer

An installer package that let's you install NodeJS and NPM as a Composer dependency.
107 stars 28 forks source link

Feature Request: Install for other OS #38

Open bradharms opened 5 years ago

bradharms commented 5 years ago

Hello,

I would like to request that we be able to install a version of Node for an architecture other than the one on which the Composer script is currently running. For example, I would like to be able to install the Linux version of Node even when running the Composer install on Mac OS.

This is useful in situations where the logical host on which the PHP app will be running is different than the platform on which the build process occurs. Think, for example, a dev environment where composer is executed on a physical MacOS host, but the PHP app is running inside of a Vagrant machine running Linux.

moufmouf commented 5 years ago

That could definitely be a good idea. I don't have much time in the coming days to work on this, but I keep this issue open for future implementation. Any help with a PR is welcome :)