#523·npm-check

Tests failing

Author: LunaticMuchCreated Apr 3, 2023Updated Aug 30, 2024

Wondering if this happens to me only... tests are failing with the current version in master

> [email protected] test
> npm run lint && ./bin/cli.js || echo Exit Status: $?.


> [email protected] lint
> xo ./lib/*.js

/Users/stefano/_GITHUB/npm-check/lib/cli.js:4
const meow = require('meow');
             ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/stefano/_GITHUB/npm-check/node_modules/meow/index.js from /Users/stefano/_GITHUB/npm-check/lib/cli.js not supported.
Instead change the require of index.js in /Users/stefano/_GITHUB/npm-check/lib/cli.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/Users/stefano/_GITHUB/npm-check/lib/cli.js:4:14)
    at Object.<anonymous> (/Users/stefano/_GITHUB/npm-check/bin/cli.js:9:12) {
  code: 'ERR_REQUIRE_ESM'
}
Exit Status: 1.