G |
Glenn Carremans |
Currently Ploi installs node/npm LTS version.
We have some projects that need an older version of node/npm to build assets, so it would be very helpful for us to have a node version manager installed by Ploi so that we can switch node version in the deploy script.
For example `nvm` or `n`.
They both have the option to set a dot file in your repo and it will set the correct node version from that file.
github.com/nvm-sh/nvm/blob/master/README.md#nvmrc
github.com/tj/n#specifying-node-versions
Once a user added the file to their project they will only need to add `nvm use` or `n auto` to their project.
Activity Newest / Oldest
Dennis
Status changed to: Planned
Glenn Jacobs
I really could do with this also. Maybe for the moment I'll try to make a script to install it.
BjarnBronsveld
Vouching for 'n' here as it is more solid and faster for use on servers. Nvm is fine for local environments for quickly switching node version in my opinion.
Dennis
Status changed to: Under review