Discussion:
[nodejs] NodeJS app installation test
Alan Joseph
2018-09-18 20:16:59 UTC
Permalink
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 nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/cd8f09d8-3ff0-421c-991e-db7fbf460f2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Paolo Nicorelli
2018-09-19 05:01:15 UTC
Permalink
Post by Alan Joseph
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.
You can use a version management.
https://github.com/tj/n or https://github.com/creationix/nvm

hope it helps
cheers
--
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 nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAJYqLYNrcdysyqD_%2Bt3u_EGLkBQHwoWWKWHDrut4HQECyD-cFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Mikkel Wilson
2018-09-19 18:12:58 UTC
Permalink
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>
Post by Alan Joseph
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 nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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.
Loading...