Python no longer available on mac

My attempt to install rescript on a mac mini (M1) failed because

npm ERR! env: python: No such file or directory

Apple has removed support for python2. Could the script be changed to use python3 instead?

The script producing the error is:

npm ERR! Error: Command failed: ./ --bootstrap
npm ERR!     at checkExecSyncError (node:child_process:828:11)
npm ERR!     at Object.execSync (node:child_process:902:15)
npm ERR!     at build_ninja (/Users/haitao/proj/mathui/node_modules/rescript/scripts/install.js:47:10)
npm ERR!     at provideNinja (/Users/haitao/proj/mathui/node_modules/rescript/scripts/install.js:94:3)
npm ERR!     at Object.<anonymous> (/Users/haitao/proj/mathui/node_modules/rescript/scripts/install.js:217:1)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1103:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
npm ERR!   status: 127,
npm ERR!   signal: null,
npm ERR!   output: [ null, null, null ],
npm ERR!   pid: 63445,
npm ERR!   stdout: null,
npm ERR!   stderr: null
npm ERR! }

Does this refer to the ninja script?

Symbolically linking to system python3 does not work on mac. However I have some version of python3 installed through macports and symbolically linking to it (outside of /usr/bin) does work. So this is no longer the problem. However build still failed to compile the ocaml compiler with

npm ERR! make[3]: *** No rule to make target `none.o', needed by `libasmrun.a'.  Stop.

I’m also on an M1 Mac, and I also don’t have python installed:

python -v
zsh: command not found: python

But I have no issue installing ReScript via NPM (have tried it right now to make sure):

mkdir tmp
cd tmp
npm init
npm install rescript
npx rescript -v
> 9.1.4

Let me know if I can help investigate.