pa11y-crawl was not running as desired on computer.
- Running 'pa11y-crawl -v' yields
cat: no package.json file or directory found
solution: none figured out so far still a work in progress
- Running 'pa11y-crawl -d /path/to/dir' loops you back to the
Usage: pa11y-crawl [options] <URL> Options:….
message
solution: make sure to provide a third argument like so pa11y-crawl -d /path/to/dir whatever
for e.g pa11y-crawl -d _site 18fsite
the last argument is because the command is set to show the help if there’s no non-option arguments (which is what the url would be, in most cases)
- Running 'pa11y-crawl [URL]' gives the following error
>>> using wget to mirror site
/usr/local/bin/pa11y-crawl: line 254: wget: command not found
<<< found 0 files in 0 directories
>>> beginning the analysis
|---------------------------------------
File "<string>", line 1
import sys, os.path; print os.path.relpath(sys.argv[1], sys.argv[2])
^
SyntaxError: invalid syntax
|| is not an html document, skipping
>>> cleaning up
```
**solution**:
- install wget `brew install wget`
- install python 2.7.11 with pyenv like so `pyenv install 2.7.11`
- run `pyenv local 2.7.11`
- run `pa11y-crawl ` command(s)