magento2-frontools
magento2-frontools copied to clipboard
Can not install frontools on arm64 CPUs
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
SVG Sprite2.0.1 is released