awscdk-v1-stack-finder icon indicating copy to clipboard operation
awscdk-v1-stack-finder copied to clipboard

Cannot seem to get this to run

Open shantgup opened this issue 2 years ago • 1 comments

I installed npm, then I cloned the GitHub repository and ran npm install.

This failed with a couple dependency errors,

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/jest
npm ERR!   dev jest@"^27" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer jest@"^28.0.0" from [email protected]
npm ERR! node_modules/ts-jest
npm ERR!   dev ts-jest@"^28" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 

I seem to have fixed this by updating the package.json to remove the below line.

    "ts-jest": "^27",

However, I still can't get it to run. See command and output below.

sh-3.2$ npx awscdk-v1-stack-finder
node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module '../lib/cli.js'
Require stack:
- /Users/shantgup/Downloads/awscdk-v1-stack-finder-main/bin/awscdk-v1-stack-finder
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/Users/shantgup/Downloads/awscdk-v1-stack-finder-main/bin/awscdk-v1-stack-finder:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/shantgup/Downloads/awscdk-v1-stack-finder-main/bin/awscdk-v1-stack-finder'
  ]
}

Node.js v18.15.0

How can I get this to run? Instructions in the README could be clearer if I'm missing steps here.

shantgup avatar Mar 09 '23 20:03 shantgup

The README says the following:

image

Why do you want to clone it and run it from local?

rix0rrr avatar Mar 15 '23 09:03 rix0rrr