dequelabs / axe-cli

[Deprecated] A command-line interface for the aXe accessibility testing engine
Mozilla Public License 2.0
430 stars 35 forks source link

Crash when running #85

Closed SteveALee closed 5 years ago

SteveALee commented 5 years ago

1st time I try the cli I get boom on exit. I do get good results 1st though so low priority. Just looks messy.

This looks like a problem in npx cleanup - doesn axe-cli or the chromedriver do anyhting odd on exit?

npx axe-cli https://southwestcommunities.co.uk

fs.js:115
    throw err;
    ^

Error: EPERM: operation not permitted, unlink 'C:\Users\steve\AppData\Roaming\npm-cache\_npx\7288\node_modules\axe-cli\node_modules\chromedriver\lib\chromedriver\chromedriver.exe'
    at Object.unlinkSync (fs.js:949:3)
    at fixWinEPERMSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:211:13)
    at rimrafSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:311:28)
    at C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:342:5
    at Array.forEach (<anonymous>)
    at rmkidsSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:341:26)
    at rmdirSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:334:7)
    at fixWinEPERMSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:209:5)
    at rimrafSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:311:28)
    at C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:342:5
SteveALee commented 5 years ago

It doesn't happen when installing axe-core globally.

I wonder if it's the fact the the package name is NOT the same as the executable name - axe-cli and axe?

SteveALee commented 5 years ago

Ok, so that is indeed the problem - shame

npx --package axe-cli axe https://southwestcommunities.co.uk

causes no error.

I'll close as I doubt you'll concider changing the command to match the package (I understand the reason)