node.js - 无法安装 Topojson

标签 node.js homebrew topojson

从 npm(我通过 Homebrew 软件安装)安装 topojson 时,我得到以下信息:

npm WARN enoent ENOENT: no such file or directory, open '/Users/MuhammadShaaban/package.json'
npm WARN MuhammadShaaban No description
npm WARN MuhammadShaaban No repository field.
npm WARN MuhammadShaaban No README data
npm WARN MuhammadShaaban No license field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/7.3.0/bin/node" "/usr/local/bin/npm" "install" "topojson"
npm ERR! node v7.3.0
npm ERR! npm  v3.10.10
npm ERR! path /Users/MuhammadShaaban/node_modules/topojson/node_modules/topojson-server/bin/geo2topo
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/MuhammadShaaban/node_modules/topojson/node_modules/topojson-server/bin/geo2topo'
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/MuhammadShaaban/node_modules/topojson/node_modules/topojson-server/bin/geo2topo'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/MuhammadShaaban/npm-debug.log

我已经查看了其他类似类型的问题,但找不到解决方法。关于如何纠正此问题的任何想法?

最佳答案

试试 npm install topojson --no-bin-links

关于node.js - 无法安装 Topojson,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41411720/

相关文章:

node.js - 有没有办法限制 websocket 消息的最大大小?

version-control - 防止 brew cleanup 删除特定的旧版本软件

d3.js - 重叠 map 之间的不精确性

node.js - 如何创建带有 ID 的最佳 world.topo.json 文件?

javascript - 仅在用户首次登录 Express 框架时显示弹出窗口

node.js - API 不会使用 MSAL 从 SPA 传递的 token 针对 AAD 进行身份验证

node.js - npm 警告 : npm does not support Node. js v12.4.0

macos - Mac 10.7.5 上的 Homebrew OpenCV 32 位

javascript - 为什么我的 d3 map 上的悬停功能无法正常工作?

node.js - Angular <app-root> 在 Node View 中无法识别