npm - npm install 运行正常,但无法运行 topojson
问题描述
如果我做:
npm init
npm install --save topojson
我最终得到了一个 package.json 文件和node_modules
目录,看起来都正确。但如果我这样做:
topojson
我懂了:
-bash: topojson: command not found
为什么?
解决方案
试试这个步骤
使用全局安装-g
1. install nodejs http://nodejs.org/
2. install npm https://npmjs.org/doc/README.html
3. run npm install -g topojson in your command prompt
4. use the command prompt to cd to the geojson file
5. run topojson -o myNewTopojsonFile.json myOldGeojsonFile.json
推荐阅读
- python - 在 Pandas Python 中处理缺失值和错误值
- mysql - mysql 订单项在我的查询中不起作用
- jquery - 未使用 laravel v6.0、datatables v1.10.20 和 yajra/laravel-datatables-oracle v9.10 填充的数据表
- python - 根据来自其他数据框的匹配历史记录创建 col
- spring-mvc - 如何使用spring和json生成thymeleaf模板
- python - python - 如何在python函数中附加()值?为什么需要 [:]?
- highcharts - 有没有办法在树图中包含热图
- python - 我如何让 aiohttp 输出 reddit 图片
- google-sheets - 谷歌表格中是否有脚本代码可以每天同时重复税收/公式?
- sql - 将表从顺序标识符转换为具有属性的实数