D3.js Can';从d3地质投影运行地质项目

D3.js Can';从d3地质投影运行地质项目,d3.js,D3.js,我正试着跟着迈克·博斯托克。每次运行geoproject时,我都会得到以下错误: /usr/local/lib/node_modules/d3-geo-projection/bin/geoproject:5 d3 = Object.assign({}, require("d3-geo"), require("../")), ^ TypeError: undefined is not a function at Object.<anonymou

我正试着跟着迈克·博斯托克。每次运行geoproject时,我都会得到以下错误:

/usr/local/lib/node_modules/d3-geo-projection/bin/geoproject:5
    d3 = Object.assign({}, require("d3-geo"), require("../")),
                ^
TypeError: undefined is not a function
    at Object.<anonymous> (/usr/local/lib/node_modules/d3-geo-projection/bin/geoproject:5:17)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
/usr/local/lib/node_模块/d3地理投影/bin/geoproject:5
d3=Object.assign({},require(“d3 geo”),require(“..”),
^
TypeError:undefined不是函数
反对。(/usr/local/lib/node_modules/d3地理投影/bin/geoproject:5:17)
在模块处编译(Module.js:460:26)
在Object.Module.\u extensions..js(Module.js:478:10)
在Module.load(Module.js:355:32)
在Function.Module.\u加载(Module.js:310:12)
位于Function.Module.runMain(Module.js:501:10)
启动时(node.js:129:16)
在node.js:814:3

您使用的节点版本是什么?这就是问题所在。谢谢