Issues with Compiling P5 on Apple Based Silicon Chips(M series Macbooks)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
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!!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with issue #6181, then reproduce the problem on an M-series Mac after running npm ci. Run npm test, npm run build, and npm run dev, compare the warning with Intel behavior, and identify what prevents those commands from completing successfully on Apple silicon.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100