Open dileep-ehr opened 8 months ago
Getting the following error on running npm install in ch2/backend
`/home/dileep/Documents/projects/Keycloak---Identity-and-Access-Management-for-Modern-Applications-2nd-Edition/ch2/backend/node_modules/chromedriver/install.js:122 const cdnBinariesUrl = (process.env.npm_config_chromedriver_cdnbinariesurl || process.env.CHROMEDRIVER_CDNBINARIESURL)?.replace(/\/+$/, ''); ^
SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 npm WARN keycloak-example-service@0.0.1 No description npm WARN keycloak-example-service@0.0.1 No repository field. npm WARN keycloak-example-service@0.0.1 No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chromedriver@122.0.4 (node_modules/chromedriver): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chromedriver@122.0.4 install: node install.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1`
node install.js
Application fails to start after that
Getting the following error on running npm install in ch2/backend
`/home/dileep/Documents/projects/Keycloak---Identity-and-Access-Management-for-Modern-Applications-2nd-Edition/ch2/backend/node_modules/chromedriver/install.js:122 const cdnBinariesUrl = (process.env.npm_config_chromedriver_cdnbinariesurl || process.env.CHROMEDRIVER_CDNBINARIESURL)?.replace(/\/+$/, ''); ^
SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 npm WARN keycloak-example-service@0.0.1 No description npm WARN keycloak-example-service@0.0.1 No repository field. npm WARN keycloak-example-service@0.0.1 No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chromedriver@122.0.4 (node_modules/chromedriver): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chromedriver@122.0.4 install:
node install.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1`Application fails to start after that