如何知道topojson是否安装并正常工作? [英] How to know if topojson is installed and working normally?

查看:249
本文介绍了如何知道topojson是否安装并正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何知道topojson是否已正常安装并正常工作?

要转换的示例小文件将受到重视。与源和预期结果

An example tiny file to convert will be appreciate. with both the source and expected result

推荐答案

似乎我有一个损坏的版本的nodejs。我首先清理了我的麻烦:

Seems I had a corrupted version of nodejs. I first cleaned up my mess:

sudo apt-get remove --purge nodejs npm topojson

然后,以下控制台允许干净重新安装:

Then the following consoles allowed a clean reinstall:

sudo apt-get update
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
--
sudo npm install -g topojson

然后我的文件合并工作正常:

Then my file merging worked fine :

cd /myfolder/
topojson -o output.json input1.json input2.json   

这篇关于如何知道topojson是否安装并正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆