Error: Could not locate the bindings file.use framework7 CLI

发布于 2022-09-11 18:09:45 字数 2479 浏览 16 评论 0

问题描述

使用Framework7 Command-Line Interface (CLI)工具创建模版出现问题

sicmatr1xMacBook-Pro:f7demo sicmatr1x$ framework7 create --ui
/usr/local/lib/node_modules/framework7-cli/node_modules/bindings/bindings.js:135
  throw err;
  ^

Error: Could not locate the bindings file. Tried:
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/build/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/build/Debug/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/build/Release/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/out/Debug/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/Debug/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/out/Release/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/Release/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/build/default/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/compiled/11.10.1/darwin/x64/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/addon-build/release/install-root/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/addon-build/debug/install-root/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/addon-build/default/install-root/sharp.node
 → /usr/local/lib/node_modules/framework7-cli/node_modules/sharp/lib/binding/node-v67-darwin-x64/sharp.node
    at bindings (/usr/local/lib/node_modules/framework7-cli/node_modules/bindings/bindings.js:126:9)
    at Object.<anonymous> (/usr/local/lib/node_modules/framework7-cli/node_modules/sharp/lib/constructor.js:10:34)
    at Module._compile (internal/modules/cjs/loader.js:738:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
    at Module.load (internal/modules/cjs/loader.js:630:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
    at Function.Module._load (internal/modules/cjs/loader.js:562:3)
    at Module.require (internal/modules/cjs/loader.js:667:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/framework7-cli/node_modules/sharp/lib/index.js:3:15)

问题出现的平台版本

MacOs 10.13.6

相关链接

https://framework7.io/cli/#cr...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文