GovTechSG / purple-a11y

Purple A11y is a customisable, automated web accessibility testing tool that allows software development teams to find and fix accessibility problems to improve persons with disabilities (PWDs) access to digital services.
MIT License
114 stars 41 forks source link

Cannot find module - #380

Open mgifford opened 2 months ago

mgifford commented 2 months ago

After pulling down the latest git repo, I can't seem to get past:

 % npm run cli -- -c 2 -o a11y-scan-results.zip -u "http://localhost:8000" -w 360

 @govtechsg/purple-hats@0.10.5 cli
 node dist/cli.js -c 2 -o a11y-scan-results.zip -u http://localhost:8000 -w 360

node:internal/modules/cjs/loader:1093
 throw err;
 ^

Error: Cannot find module '/Users/mgifford/Documents/GitHub/purple-a11y/dist/cli.js'
   at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
   at Module._load (node:internal/modules/cjs/loader:934:27)
   at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
   at node:internal/main/run_main_module:23:47 {
 code: 'MODULE_NOT_FOUND',
 requireStack: []
}

Node.js v19.9.0

 

I've tied to build it again from a fresh install but can't seem to get the results I need to get it running again from the command line.

younglim commented 1 month ago

Have you tried running npm run build before npm run cli ?