Skip to content

Cannot find module node_modules/xmlbuilder/lib/index #8

@Rei-x-AV

Description

@Rei-x-AV

We trying to run the mcp with npx -y @infisical/mcp I get this error:

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

Error: Cannot find module '/Users/rei/.npm/_npx/30b7f3377962bd4f/node_modules/xmlbuilder/lib/index'. Please verify that the package.json has a valid "main" entry
    at tryPackage (node:internal/modules/cjs/loader:500:19)
    at Function._findPath (node:internal/modules/cjs/loader:760:18)
    at Function._resolveFilename (node:internal/modules/cjs/loader:1351:27)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1021:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1026:22)
    at Function._load (node:internal/modules/cjs/loader:1175:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1445:12)
    at require (node:internal/modules/helpers:135:16) {
  code: 'MODULE_NOT_FOUND',
  path: '/Users/rei/.npm/_npx/30b7f3377962bd4f/node_modules/xmlbuilder/package.json',
  requestPath: 'xmlbuilder'
}

Node.js v22.18.0

I'm using nodejs 22.18 with Volta on Macos Sequoia 15.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions