tjscollins/axe-crawler

install fails - no such file or directory

Opened this issue · 7 comments

Using MacOS High Sierra (10.13.4) with Node 8.11.1 and npm 5.8.0, when I follow the directions in the README to install axe-crawler npm install -g axe-crawler, it fails with the following:

npm ERR! path /Users/rfentres/.nvm/versions/node/v8.11.1/lib/node_modules/axe-crawler/dist/bin/axe-crawler
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/rfentres/.nvm/versions/node/v8.11.1/lib/node_modules/axe-crawler/dist/bin/axe-crawler'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rfentres/.npm/_logs/2018-04-23T17_12_08_464Z-debug.log

It worked before, and I even submitted a pull request, so I'm wondering if perhaps it has something to do with my upgrade to High Sierra. Any ideas for how to fix? I tried uninstalling and reinstalling Node, both from the package installer on the NodeJS site and by using nvm, with no luck.

Same error for me on ubuntu 18.04. Other modules from npm install fine and that directory is there, just nothing is from axe-crawler is in it.

I see the same error related to chmod on MacOS. It fails with an npm global install or local project install.

Same error on Windows 10

I was able to install the previous version npm i -g axe-crawler@0.5.4

Seems something got messed up in the building/publication of the 0.5.5 version, which is currently latest on npm.

@tjscollins: The problem appears to be an incorrect bin path in package.json:

  "bin": {
    "axe-crawler": "dist/bin/axe-crawler"
  },

When built (using npm build), the output path is dist/axe-crawler (no interceding bin/ directory).

This change was made here:

26db1d7#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R25

Hello @tjscollins

I am still getting the same error,
OS: Windows 10
Node Version: v12.16.1

Error:

npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path C:\Users\gaddamra\Downloads\nightwatch\uas\tests\node_modules\axe-crawler\dist\bin\axe-crawler
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\gaddamra\Downloads\nightwatch\uas\tests\node_modules\axe-crawler\dist\bin\axe-crawler'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\gaddamra\AppData\Roaming\npm-cache\_logs\2020-10-08T19_31_13_289Z-debug.log

Same issue un MacOS Catalina (10.15.7), Node v15.8.0, npm 7.5.3.

npm install -g axe-crawler fails
npm install -g axe-crawler@v0.5.2 works but axe-crawler is still broken

axe-crawler example.com outputs only errors.

Error starts with

Knex: run
$ npm install sqlite3 --save
Error: Cannot find module '/usr/local/lib/node_modules/axe-crawler/node_modules/sqlite3/lib/binding/node-v88-darwin-x64/node_sqlite3.node'

etc.