parcel-bundler / watcher

👀 A native C++ Node module for querying and subscribing to filesystem events
MIT License
656 stars 45 forks source link

Github M1 Build Error sh: node-gyp-build: command not found #161

Closed rplankenhorn closed 10 months ago

rplankenhorn commented 10 months ago

I am getting the below error only on the macos-latest-xlarge runner which is an M1 machine. I cannot reproduce this error locally on my M1 Max.

.../node_modules/@parcel/watcher install$ node-gyp-***
.../node_modules/@parcel/watcher install: sh: node-gyp-***: command not found

@parcer-bundler/watcher is being pulled in as a dependency of nrwl/nx:

@nrwl/devkit 15.9.6
└─┬ nx 15.9.6 peer
  └── @parcel/watcher 2.1.0
@parcel/watcher 2.1.0
nx 15.9.6
└── @parcel/watcher 2.1.0

I have been able to get around this issue by doing the below commands but I do not think this is an acceptable solution:

pnpm install --frozen-lockfile --prefer-offline --ignore-scripts
pnpm rebuild -r
rplankenhorn commented 10 months ago

I was able to resolve this by adding @parcel/watcher as a top level workspace dependency.