4

我正在学习 Mike Bostock 的映射教程。我已按照说明安装 v0.10.5 的 node 并使用 npm 安装 topojson。如果我运行 'whereis topojson ',它会显示 'topojson: /usr/bin/topojson /usr/bin/X11/topojson '。当我尝试运行 topojson 以按照教程格式化子单元 json 时,我收到以下错误:

module.js:340 抛出错误;

错误:

Function.Module._load (module.js:280:25)
在 Module.require (module .js:364:17)在对象
的 require (module.js:380:17)
处。(/usr/lib/node_modules/topojson/index.js:4:21)
在 Module._compile (module.js:456:26)
在 Object.Module._extensions..js (module.js:474:10)
在Module.load (module.js:356:32) 在 Function.Module._load (module.js:312:12) 在 Module.require (module.js:364:17)

有谁知道我在这里做错了什么?

4

0 回答 0