insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
Other
5.58k stars 331 forks source link

Can't install nwb on apple m1 chip #581

Open tamhv opened 1 year ago

tamhv commented 1 year ago

This issue is a:

Dockerfile

FROM node:18

docker build -t node18 .
docker run -it --name node18 node18 bash

# npm install -g nwb
npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/nwb/node_modules/phantomjs-prebuilt
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! PhantomJS not found on PATH
npm ERR! Unexpected platform or architecture: linux/arm64
npm ERR! It seems there is no binary available for your platform/architecture
npm ERR! Try to install PhantomJS globally

Apple M1 chip node 18