I'm writing ES6 code, using class
and const
, but Travis CI is saying that my build is failing because it is running my test script with node.js
version 0.10.48
. Here is a link to the failed build: https://travis-ci.org/javacoolme/google-sign-in/builds/205586193.
Node. js 10 has been considered EOL by the OpenJS Foundation since April 2021 and has been deprecated in SonarSource products since that time (with warnings in the analysis logs and user interfaces).
To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print the version number so you'll see something like this v0. 10.35 .
You should specify the node versions you want to test in your .travis.yml file like this:
language: node_js
node_js:
- "6"
- "4"
Make sure you have the correct indentation... Only 2 spaces before - "6"
You can specify the node version as described here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With