#1006260 node-d3-dsv: Fatal error when running 'csv2json'

#1006260#5
Date:
2022-02-22 07:33:05 UTC
From:
To:
Dear Maintainer,

When running the 'csv2json' command I get the following error message:


node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'rw'
Require stack:
- /usr/share/nodejs/d3-dsv/bin/dsv2json
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/usr/share/nodejs/d3-dsv/bin/dsv2json:4:10)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/share/nodejs/d3-dsv/bin/dsv2json' ]
}

#1006260#10
Date:
2022-02-23 08:09:44 UTC
From:
To:
Sorry, I noticed I was using the "nodejs" .deb package from the nodesource repos mixed with the "node-d3-dsv" package from the Debian repos.

I tried again with the "nodejs" package from the debian, and csv2json seems to work fine.

Sorry again for the inconvenience.

Angel

#1006260#15
Date:
2022-06-01 19:26:40 UTC
From:
To:
Hi,

So, let's close this bug then.

Paul