I'm trying to understand how to proceed with a repo I've started working on that uses PhantomJS, a node package that was last published five years ago and doesn't seem to support M1 Macs.
Other than running an AMD64 Docker container on my Mac, is there any option beyond changing the codebase? Changing the codebase would pose problems for colleagues not on M1 machines.
The error messages:
Now using node v14.17.6 (npm v6.14.15)
Build theme
npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated
> phantomjs-prebuilt@2.1.16 install /var/www/html/www/themes/custom/rutherford/node_modules/phantomjs-prebuilt
> node install.js
PhantomJS not found on PATH
Unexpected platform or architecture: linux/arm64
It seems there is no binary available for your platform/architecture
Try to install PhantomJS globally
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
PhantomJS: https://www.npmjs.com/package/phantomjs-prebuilt
Thank you.