Issues with Compiling P5 on Apple Based Silicon Chips(M series Macbooks) #6202
Description
Hello,
This issues serves as a discussion point for compiling p5 repository on Apple Based Silicon Chips(M series Macbooks).
This is in continuation to the issue #6181.
Issues I am facing on M series Macbook
Whenever I try to run :
npm test
|| npm run build
|| npm run dev
in order to compile p5 repo(after installing the required npm packages using npm ci
),
it produces the warning : Cannot read properties of undefined (reading 'getJSON') Use --force to continue.
It produces the same warning with npm test --force
as well.
However. when I tried to run the same commands on an intel chip powered Macbook, as suggested by @limzykenneth , @almchung, @nbriz
Everything compiled as expected.
The npm test
command
worked, and npm run dev
also worked and it compiled and ran on the following server on chrome!!
So this issue serves as a reference for anyone trying to compile and run p5 repo on a M series powered Macbook.
We could look about it in the future at the blockers which stop it from being compiled on M series powered Macbooks.
Anyone having a view point/solution on this issue is welcome to comment below!!