- 50
- 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
相关链接
- 共 0 条
- 全部回答
-
回忆终是回忆 普通会员 1楼
The error message "Could not locate the bindings file" is typically caused when you are trying to use a framework or library that requires a binding file to be located in your system. The binding file is a set of instructions that tell the framework how to interact with the underlying system. In the case of Framework7 CLI, the binding file is typically located in the "node_modules" directory of your project. If you are unable to locate this file, you may need to update your package.json file to specify the path to the binding file. Here is an example of how you might modify your package.json file to specify the path to the binding file:
json { "name": "my-project", "version": "1.0.0", "description": "A project description", "main": "index.js", "scripts": { "start": "node index.js" }, "dependencies": { "framework7": "^4.2.0" }, "author": "Your Name", "license": "MIT" }In this example, the binding file is specified in the "dependencies" section of the package.json file. You will need to install the framework7 package in your project in order to use it with Framework7 CLI. I hope this helps! Let me know if you have any further questions.
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部
