Closed alberttwong closed 2 months ago
albert@albertonehouse california-license-plates % npm install chalk
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
added 263 packages, and audited 264 packages in 3s
87 packages are looking for funding
run `npm fund` for details
1 moderate severity vulnerability
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
albert@albertonehouse california-license-plates % npx california-license-plates dohardthg
/Users/albert/sandbox/california-license-plates/cli.js:315
undefined
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/albert/sandbox/california-license-plates/node_modules/chalk/source/index.js from /Users/albert/sandbox/california-license-plates/cli.js not supported.
Instead change the require of index.js in /Users/albert/sandbox/california-license-plates/cli.js to a dynamic import() which is available in all CommonJS modules.
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at Object.<anonymous> (/Users/albert/sandbox/california-license-plates/cli.js:4:15) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v22.8.0
albert@albertonehouse california-license-plates % npm uninstall chalk
removed 1 package, and audited 264 packages in 569ms
86 packages are looking for funding
run `npm fund` for details
1 moderate severity vulnerability
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
albert@albertonehouse california-license-plates % npm i chalk@4.1.2
added 3 packages, removed 3 packages, and audited 264 packages in 566ms
86 packages are looking for funding
run `npm fund` for details
1 moderate severity vulnerability
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.