getappmap / getappmap/appmap-js
CLI install command fails with `Cannot find module`
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 53
- Forks
- 18
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 8
Description
I clicked "Automated install via AppMap CLI" in the IntelliJ plugin, which executed a command. But the command failed with an error.
/home/jansorg/self-employment/customers/AppLand/intellij-plugin/build/idea-sandbox/system/tmp/appland-downloads/appmap/3.46.0/appmap-linux-x64 install -d /home/jansorg/self-employment/customers/AppLand/sources/juice-shop
Installing AppMap agent for juice-shop...
? AppMap is about to be installed. Confirm the details below.
!!! Telemetry disabled !!!: true
Project type: npm
Project directory: /home/jansorg/self-employment/customers/AppLand/sources/juice-shop
Git remote: origin git@github.com:juice-shop/juice-shop.git (fetch)
Node version: node failed with code Error: An error occurred while running the command: node --version
The command exited with code 1
> node:internal/modules/cjs/loader:936
> throw err;
> ^
>
> Error: Cannot find module '/home/jansorg/self-employment/customers/AppLand/sources/juice-shop/--version'
> at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
> at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
> at Function.Module._load (node:internal/modules/cjs/loader:778:27)
> at Function.runMain (pkg/prelude/bootstrap.js:1983:12)
> at node:internal/main/run_main_module:17:47 {
> code: 'MODULE_NOT_FOUND',
> requireStack: []
> }
Is this correct? (Y/n)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the CLI's handling of the node --version command and compare it with the reported packaged-app error. The fix is complete when the install flow obtains the Node version successfully instead of treating --version as a module path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100