This repository was archived by the owner on Mar 19, 2021. It is now read-only.
Commit b9ff463
fix: add node version restriction (#14)
When running `axe-cli` in in node version smaller than 6 (this is a least what I tested) it throws the following error:
```
> axe https://www.stefanjudis.de
/Users/stefanjudis/.nvm/versions/node/v5.12.0/lib/node_modules/axe-cli/node_modules/selenium-webdriver/index.js:115
static createSession(...args) {}
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/stefanjudis/.nvm/versions/node/v5.12.0/lib/node_modules/axe-cli/lib/axe-test-urls.js:3:19)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
```
To help future users it might make sense to define a proper version, so that npm could potentially warn the user.1 parent 7c48459 commit b9ff463
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments