Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module - #380

Open
mgifford opened this issue Jul 3, 2024 · 1 comment
Open

Cannot find module - #380

mgifford opened this issue Jul 3, 2024 · 1 comment

Comments

@mgifford
Copy link

mgifford commented Jul 3, 2024

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/[email protected] 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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants