bcc-code / directus-schema-sync

The better way to sync your Directus schema and data between environments
Apache License 2.0
90 stars 4 forks source link

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@directus/update-check' imported from /directus/cli.js #8

Closed crebuh closed 6 months ago

crebuh commented 6 months ago

Describe the Bug

Hello Guys,

I wanted to add the extensions to my custom Dockerfile. But when the container is starting up, I always get an error in the logs.

To Reproduce

Follow Follow https://github.com/bcc-code/directus-schema-sync?tab=readme-ov-file#install

Node.js v18.18.2
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@directus/update-check' imported from /directus/cli.js
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:890:9)
    at moduleResolve (node:internal/modules/esm/resolve:939:20)
    at defaultResolve (node:internal/modules/esm/resolve:1132:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
    at link (node:internal/modules/esm/module_job:76:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.18.2

Any Idea what is going on?

Version

10.8.2

Installed Extension Via

Docker file

crebuh commented 6 months ago

Had to use pnpm instead of npm ... problem solved :)