haxiomic / dts2hx

Converts TypeScript definition files (d.ts) to haxe externs (.hx) via the TypeScript compiler API
MIT License
134 stars 9 forks source link

Can't npm install on Mac M1 #126

Closed ConfidantCommunications closed 8 months ago

ConfidantCommunications commented 8 months ago

When I attempt to run the Three example and do npm install I get:

npm ERR! code 1 npm ERR! path /Users/alland/Documents/haXe/dts2hx/examples/three/node_modules/esbuild npm ERR! command failed npm ERR! command sh /var/folders/cy/2wqynsd16s170bqxtqfrvw4w0000gq/T/postinstall-f3e3d7e6.sh npm ERR! error: Unsupported platform: darwin arm64

Any suggestions?

haxiomic commented 8 months ago

Hey! Try editing package json to use the latest version of esbuild and deleting package-lock.json

ConfidantCommunications commented 8 months ago

This works, thank you.