SnowdogApps / magento2-frontools

Set of front-end tools for Magento 2 based on Gulp.js
MIT License
430 stars 142 forks source link

Can not install frontools on arm64 CPUs #452

Open patrykbura opened 2 years ago

patrykbura commented 2 years ago

While trying to install on Mac M1, there's issue:

Exit code: 1
Command: node install.js
Arguments:
Directory: /var/www/html/vendor/snowdog/frontools/node_modules/phantomjs-prebuilt
Output:
PhantomJS not found on PATH
Unexpected platform or architecture: linux/arm64
It seems there is no binary available for your platform/architecture

Node v16.15.0

PhantomJS is deprecated but it's used by gulp-svg-sprite.


Temporary fix that works for me, is to change in package.json:

"gulp-svg-sprite": "svg-sprite/gulp-svg-sprite#dev"

Unfortunately new changes, that are dropping PhantomJS (in svg-sprite v2.0.0-beta1) are not released yet and working only on dev branch. https://github.com/svg-sprite/gulp-svg-sprite/commit/8b4803dfcd185749f52f4230344d559dbd483514


EDIT:

Release of new gulp-svg-sprite version dropping PhatnomJS is comming soon. https://github.com/svg-sprite/gulp-svg-sprite/issues/127#issuecomment-1141048410

navarr commented 1 year ago

SVG Sprite2.0.1 is released