angular / webdriver-manager

A binary manager for E2E testing
MIT License
224 stars 116 forks source link

Fails under Node 16 on Centos8 #495

Open csvan opened 3 years ago

csvan commented 3 years ago

I unfortunately do not have a repro for this, and it is NOT happening on my Macbook.

When switching from Node 14 to Node 16, installs fail with:

Error: EACCES: permission denied, mkdir '/workdir/node_modules/webdriver-manager/selenium'
at Object.mkdirSync (node:fs:1325:3)
at Function.makeOutputDirectory (/workdir/node_modules/webdriver-manager/built/lib/files/file_manager.js:27:16)
at Program.update [as runMethod] (/workdir/node_modules/webdriver-manager/built/lib/cmds/update.js:105:29)
at Program.run (/workdir/node_modules/webdriver-manager/built/lib/cli/programs.js:61:37)
at Object. (/workdir/node_modules/webdriver-manager/built/lib/webdriver.js:16:45)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19) {
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/workdir/node_modules/webdriver-manager/selenium'

The ONLY thing differing is the Node version, verified by switching back to 14 where everything runs fine.