You can use 'n' (`npm install -g n`) for node versions, but switching npm 
versions may be more difficult. If you're trying to run this as part of a 
CI/CD pipeline and you can run on a machine that supports Docker, you can 
use `docker run node:$VERSION` to select which version to use. The list of 
available versions is here: https://hub.docker.com/_/node/ . For example: 
`docker run --rm --volume ./:/data node:6.14.4-jessie "npm install"`

This will mount your current directory to /data in the container running 
Debian Jessie with node version 6.14.4 and run `npm install`. (the --rm 
flag will remove the container when it's exited; good for CI.)

Mikkel
Oblivious.io <https://www.oblivious.io/?r=googlenodejs>

On Tuesday, September 18, 2018 at 7:29:07 PM UTC-7, Alan wrote:
>
> Hello all, 
>
> Please let me know if you know about any testing tool that I can use for 
> testing the installation of my Node app in different NodeJS versions and 
> NPM versions.
>
> And help would be appreciated.
>
> Thank you
> Alan
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/625274ed-0c04-412d-9fec-0f2caaf2ecda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to