framework7io / framework7-cli

Framework7 command line utility
https://framework7.io/cli/
MIT License
89 stars 44 forks source link

Error when run framework7 create #24

Open ezani92 opened 5 years ago

ezani92 commented 5 years ago

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)

smanczak commented 5 years ago

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

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

ang3lx commented 5 years ago

same here.. generate-assets doesn't work

smanczak commented 5 years ago

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

emad-sure commented 4 years ago

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

2019-09-30_19-34

brettsprad commented 4 years ago

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.