Cannot start topojson after installation

I work through the Mike Bostock cartographic guide . I followed the instructions by installing v0.10.5 from node and using npm to install topojson. If I run 'whereis topojson' it displays' topojson: / usr / bin / topojson / usr / bin / X11 / topojson ". When I try to run topojson to format the json subunits according to the tutorial, I get the following error:

module.js: 340 throw err;

Error: Cannot find the module. / lib / topojson / topology '
in Function.Module._resolveFilename (module.js: 338: 15)
in Function.Module._load (module.js: 280: 25)
in Module.require (module.js: 364: 17)
on demand (module.js: 380: 17)
in the facility. (/usr/lib/node_modules/topojson/index.js-00-00:21)
on Module._compile (module.js: 456: 26)
in Object.Module._extensions..js (module.js: 474: 10)
on Module.load (module.js: 356: 32) in Function.Module._load (module.js: 312: 12) on Module.require (module.js: 364: 17)

Does anyone know what I'm doing wrong here?

+4
source share

Source: https://habr.com/ru/post/1480652/


All Articles