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

MODULE_NOT_FOUND error when running npx appmap-node <command> #126

Closed
RaphKa02 opened this issue Mar 14, 2024 · 2 comments
Closed

MODULE_NOT_FOUND error when running npx appmap-node <command> #126

RaphKa02 opened this issue Mar 14, 2024 · 2 comments
Assignees

Comments

@RaphKa02
Copy link

RaphKa02 commented Mar 14, 2024

run command: npx appmap-node yarn run dev

(Λ) Running with appmap-node version 2.18.0
(Λ) Using config file C:\Users\My NameWithSpace\Projekt\appmap.yml
node:internal/modules/cjs/loader:1078
  throw err;
  ^

Error: Cannot find module 'C:\Users\My'
Require stack:
- internal/preload
    at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Module._load (node:internal/modules/cjs/loader:920:27)
    at internalRequire (node:internal/modules/cjs/loader:174:19)
    at Module._preloadModules (node:internal/modules/cjs/loader:1431:5)
    at loadPreloadModules (node:internal/process/pre_execution:606:5)
    at setupUserModules (node:internal/process/pre_execution:118:3)
    at prepareExecution (node:internal/process/pre_execution:109:5)
    at prepareMainThreadExecution (node:internal/process/pre_execution:37:3)
    at node:internal/main/run_main_module:10:1 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

Node.js v18.16.0

The path is split at a space character.

@dividedmind dividedmind transferred this issue from getappmap/appmap-agent-js Mar 14, 2024
@dividedmind
Copy link
Collaborator

@RaphKa02 this is a known issue in npx: npm/cli#502
See #122 for workarounds, but you might be able to just npm i -g npm@7. Lmk if it helps!

@dividedmind dividedmind self-assigned this Mar 14, 2024
@dividedmind
Copy link
Collaborator

Closing as duplicate of #122

@RaphKa02 This issue should be fixed now, make sure to run with npx appmap-node@latest to force upgrade. Please reopen if you're still seeing the problem. Thanks!

@dividedmind dividedmind closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
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