I created a new tenant today, and the installation of the GitHub Deployments extension was failing consistently with the following error:
{
"code": 400,
"message": "Compilation failed: Cannot find module 'auth0-source-control-extension-tools@4.0.5'\nRequire stack:\n- /data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js",
"error": "Cannot find module 'auth0-source-control-extension-tools@4.0.5'\nRequire stack:\n- /data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js",
"stack": "Error: Cannot find module 'auth0-source-control-extension-tools@4.0.5'\nRequire stack:\n- /data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js\n at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)\n at Function.WebtaskModule._resolveFilename (/data/sandbox/lib/module.js:96:21)\n at WebtaskModule.require (/data/sandbox/lib/module.js:154:37)\n at require (/data/sandbox/lib/module.js:189:17)\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:22878)\n at t (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:177)\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:27674)\n at t (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:177)\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:97187)\n at t (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:177)\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:104372)\n at t (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:177)\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:40111)\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:41291)\n at t (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:177)\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:106167)\n at t (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:177)\n at /data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:560\n at Object.<anonymous> (/data/io/9ce6a17d-77e3-470a-8e06-a241ad317846/webtask.js:1:571)\n at WebtaskModule.compileWebtask (/data/sandbox/lib/module.js:147:32)\n at defaultJavascriptCompiler (/data/sandbox/lib/compiler.js:135:24)\n at defaultCompiler (/data/sandbox/lib/compiler.js:144:12)"
}
I ended up learning how to change the Node version through the tenants settings here: Trying to create Bitbucket deployments - #10 by devs_auth0
I’m guessing this is related to recently deprecating Node 8 in favor of 12. But wanted to report this issue in case others run into it as well. (Based on two other community posts, seems like this is possibly a recurring problem with Auth0 during Node version upgrades, and it would be nice to have a better experience.)