I am working through https://medium.com/@mbostock/command-line-cartography-part-2-c3a82c5c0f3 but I am hitting this error:
C:tmpgeo-tutorial>ndjson-map -r d3 "(d.properties.fill=d3.scaleSequential(d3.interpolateViridis).domain([0,4000])(d.properties.density),d)" <ca-albers-density.ndjson >ca-albers-color.ndjson C:UserserwinAppDataRoamingnpmnode_modulesndjson-clirequires.js:6 module = require(resolve(module));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module C:tmpgeo-tutorialnode_modulesd3srcindex.js from C:UserserwinAppDataRoamingnpmnode_modulesndjson-clirequires.js not supported. Instead change the require of index.js in C:UserserwinAppDataRoamingnpmnode_modulesndjson-clirequires.js to a dynamic import() which is available in all CommonJS modules.
at module.exports (C:UserserwinAppDataRoamingnpmnode_modulesndjson-clirequires.js:6:12)
at Command.<anonymous> (C:UserserwinAppDataRoamingnpmnode_modulesndjson-clinode_modulescommanderindex.js:412:13)
at Command.emit (node:events:390:28)
at Command.parseOptions (C:UserserwinAppDataRoamingnpmnode_modulesndjson-clinode_modulescommanderindex.js:730:14)
at Command.parse (C:UserserwinAppDataRoamingnpmnode_modulesndjson-clinode_modulescommanderindex.js:471:21)
at Object.<anonymous> (C:UserserwinAppDataRoamingnpmnode_modulesndjson-clindjson-map:15:6) { code: 'ERR_REQUIRE_ESM' }
What does this mean and how can I fix this?