Skip to content

Issues with Compiling P5 on Apple Based Silicon Chips(M series Macbooks) #6202

Open
@Ayush23Dash

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!!
Screenshot 2023-06-11 at 2 04 08 PM

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!!

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions