Can anyone tell us how to change the node version used to run a zapier app to node 6.10.2 or later?
Zapier cli docs state that All Zapier CLI apps are run using Node.js v6.10.2.. Our app is built using the cli.
Elsewhere in Zapier docs it states that The environment is vanilla node.js v4.3.2 which runs JavaScriptsky tv bundles.
We already did z.console.log('node version', process.version);
from within the Zapier app so that we can see the node version where it is run. We retrieved this using zapier logs
. The version logged is 4.3.2.
Previously our package.json
contained:
json
"engines": {
"node": ">=4.3.2",
"npm": ">=2.0.0"
}
We have updated this to:
json
"engines": {
"node": "6.10.2",
"npm": ">=2.0.0"
}
The same applies for the travis.yml
which was previously 4.3.2 but is now: yml node_js: - "6.10.2"
Thanks ; )
SOLUTION
As noted in the accepted answer below, zapier cli apps are currently run with node 6.10.x. We changed the node version in our package.json
under the engine
key to be 6.10.2, but this alone did not change the node version it was run with. The node version was updated when we changed the zapier-platform-core
dependency to be 4.3.1 (it was previously 1.x), and logging process.version
now shows the version as 6.10.3.