/usr/local/lib/node_modules/@rockcarver/frodo-cli/dist/app.cjs
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object. (/usr/local/lib/node_modules/@rockcarver/frodo-cli/node_modules/@rockcarver/frodo-lib/src/api/BaseApi.ts:9:28)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at ModuleWrap. (node:internal/modules/esm/translators:203:29) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/local/lib/node_modules/@rockcarver/frodo-cli/dist/app.cjs' ]
}`
This is mitigated by also globally installing the loglevel dependency: RUN npm i -g loglevel
Frodo CLI version
This will currently be 2.0.0 as in our Dockerfile we are running
RUN npm i -g @rockcarver/frodo-cli
which will be pulling the latest.Describe the issue
On a Docker image where we have installed the CLI globally, trying to run an import gives the following:
`node:internal/modules/cjs/loader:1140 const err = new Error(message); ^
Error: Cannot find module 'loglevel' Require stack:
This is mitigated by also globally installing the loglevel dependency:
RUN npm i -g loglevel