framework7-cli icon indicating copy to clipboard operation
framework7-cli copied to clipboard

Error when run framework7 create

Open ezani92 opened this issue 6 years ago • 5 comments

Death-Mac:ecommerce_app Macintosh$ sudo framework7 create /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/8.9.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-v57-darwin-x64/sharp.node at bindings (/usr/local/lib/node_modules/framework7-cli/node_modules/bindings/bindings.js:126:9) at Object. (/usr/local/lib/node_modules/framework7-cli/node_modules/sharp/lib/constructor.js:10:34) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object. (/usr/local/lib/node_modules/framework7-cli/node_modules/sharp/lib/index.js:3:15)

ezani92 avatar Apr 24 '19 12:04 ezani92

And generate-assets - It doesn't work either.

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'indexOf' of undefined at generateAssets

smanczak avatar Apr 26 '19 06:04 smanczak

same here.. generate-assets doesn't work

ang3lx avatar May 24 '19 18:05 ang3lx

Changing package.json from new version and all is great :)

smanczak avatar May 27 '19 08:05 smanczak

Same Issue here , any solution @seba316d @ang3lx Node Version v12.10.0

2019-09-30_19-34

emad-sure avatar Sep 30 '19 17:09 emad-sure

Same here:

image

I've tried: -clearing cache: npm cache clean --force -reinstalling sharp: npm install sharp --unsafe-perm -deleting node_modules folder & reinstalling node: npm install

...but nothing works.

brettsprad avatar Dec 04 '19 01:12 brettsprad