Dennis

Dennis

Live

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.

Saeed Rehman

Saeed Rehman

·

Very much needed. To be Honest I have a legacy project that is vey critical and running on Node 10.2. We started it in 2018 on LaravelForge. One of the reasons for not migrating it to Ploi yet is that I am too lazy to install Old node version manually.

no votes yet
jurgen

jurgen

·

Ow yeah! This would be nice to have!

no votes yet
Anees Khan

Anees Khan

·
no votes yet
jurgen

jurgen

·

FYI, for now I install nvm on behalf of the user of the website and in the deploy script I put: . ~/.nvm/nvm.sh && nvm use 16

no votes yet
Dennis

Dennis

·

@Jurgen Indeed, this is fine and will probably also work with the installation with Ploi.

no votes yet
Dennis

Dennis

· ·

Via the manage tab, you may now install NVM or N (up to you), we're still checking of we can expand functionality.

2 total votes
jurgen Lewis Larsen
Tim Kleyersburg

Tim Kleyersburg

·

@Dennis I've tried using this feature today by first installing nvm on the server over the manage tab and then just using the command nvm use auto in my deploy script. This outputs ploi.sh: line 8: nvm: command not found

Can you tell me/us how to correctly use this feature?

no votes yet

You may use @ to mention someone.

Node version manager

34 total votes
  • Dennis moved item to board Live

    2 months ago
  • Dennis moved item to board In progress

    3 months ago
  • Dennis opened

    1 year ago