Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Please run the file through the pkg script to reproduce the error: mirrord exec --config-file=./.mirrord/mirrord.json -- npm run dev:mirrord

The error only shows when using feature.fs.mode = local and running a script.

Running the file directly does not throw: mirrord exec --config-file=./.mirrord/mirrord.json -- node ./main.js

Example error:

mirrord exec --config-file=./.mirrord/mirrord.json -- npm run dev:mirrord
* Running command: npm run dev:mirrord
* mirrord will run without a target, the configuration file was loaded from ./.mirrord/mirrord.json
* mirrord will run without the mirrord Operator
* env: all remote environment variables will be fetched
* fs: file operations will default to read and write locally
* incoming: incoming traffic will be mirrored
* outgoing: forwarding is enabled on TCP and UDP
* dns: DNS will be resolved remotely
* internal proxy: logs will be written to /var/folders/_c/11p7w38d13x1tlvhlhjzg1n00000gn/T/mirrord-intproxy-1770958817-Mm6luVt.log
* key: 78ca7044-4e77-4cf9-baa1-d0c87f16e6cd
⠴ mirrord exec (3.188.1)
    ✓ running on latest!
    ✓ ready to launch process
      ✓ layer extracted
      ✓ operator not found
      ✓ agent pod default/mirrord-agent-dmhh8zcmtt-rc95w created
      ✓ pod is ready
      ✓ arm64 layer library extracted
    ✓ config summary
    ✓ Ready!
node:internal/modules/cjs/loader:1215
  throw err;
  ^

Error: Cannot find module '../lib/cli.js'
Require stack:
- /private/var/folders/_c/11p7w38d13x1tlvhlhjzg1n00000gn/T/mirrord/mirrord-bin-ghu3278mz-3.188.1/Users/gray/.nvm/versions/node/v20.19.3/bin/npm
    at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
    at Module._load (node:internal/modules/cjs/loader:1043:27)
    at Module.require (node:internal/modules/cjs/loader:1298:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/private/var/folders/_c/11p7w38d13x1tlvhlhjzg1n00000gn/T/mirrord/mirrord-bin-ghu3278mz-3.188.1/Users/gray/.nvm/versions/node/v20.19.3/bin/npm:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1529:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
    at Module.load (node:internal/modules/cjs/loader:1275:32)
    at Module._load (node:internal/modules/cjs/loader:1096:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/private/var/folders/_c/11p7w38d13x1tlvhlhjzg1n00000gn/T/mirrord/mirrord-bin-ghu3278mz-3.188.1/Users/gray/.nvm/versions/node/v20.19.3/bin/npm'
  ]
}

Node.js v20.19.3

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages