Small issue with node-fetch in package.json
Either downgrade to
` "node-fetch": "2.6.0",`
or use cross-fetch instead
` "cross-fetch": "^3.1.5",`
https://exerror.com/error-err_require_esm-require-of-es-module-using-requirenode-fetch/
/opt/eos-nagios-plugins/ship/check_eosio_ship:7
const fetch = require('node-fetch');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/eos-nagios-plugins/ship/node_modules/node-fetch/src/index.js from /opt/eos-nagios-plugins/ship/check_eosio_ship not supported.
Instead change the require of index.js in /opt/eos-nagios-plugins/ship/check_eosio_ship to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/opt/eos-nagios-plugins/ship/check_eosio_ship:7:15) {
code: 'ERR_REQUIRE_ESM'
}
Small issue with node-fetch in package.json
Either downgrade to
or use
cross-fetchinsteadhttps://exerror.com/error-err_require_esm-require-of-es-module-using-requirenode-fetch/