You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is related to an issue I have open with @parcel/watcher.
When building on my local Ubuntu 20.04 machine, @parcel/watcher installs successfully because node-gyp-build is able to find the linux-x64 prebuild supplied with the package. However, when building in our Gitlab CI environment, the prebuild is not found. While this does end up exposing an apparent build error in @parcel/watcher, I can't figure out why node-gyp-build is failing to detect the prebuild.
I've attached npm ci --loglevel silly logs below. Here is the tree of @parcel/watcher when it is successfully installed on my local machine.
Could mean that node-gyp-build fails on the require() test, which loads the addon at install time as a smoke test. To check that, run npm install @parcel/watcher --ignore-scripts (to skip node-gyp-build) followed by node node_modules/@parcel/watcher/prebuilds/linux-x64/node.napi.glibc.node || echo $?. If so, it may then help to compare toolchain versions (llvm, glib, etc) between the machines, including the machine that parcel uses to compile their prebuilt binaries.
One thing we can improve on this end, logging-wise, is to also check for loglevel=silly here:
This is related to an issue I have open with
@parcel/watcher
.When building on my local Ubuntu 20.04 machine,
@parcel/watcher
installs successfully becausenode-gyp-build
is able to find thelinux-x64
prebuild supplied with the package. However, when building in our Gitlab CI environment, the prebuild is not found. While this does end up exposing an apparent build error in@parcel/watcher
, I can't figure out whynode-gyp-build
is failing to detect the prebuild.I've attached
npm ci --loglevel silly
logs below. Here is the tree of@parcel/watcher
when it is successfully installed on my local machine.If a fix can't be found, could we add some logging that might help debugging in the future?
node-gyp-build_noPrebuildFound.txt
The text was updated successfully, but these errors were encountered: