I'm encountering issues when trying to run the build of my Angular project with NX in GitHub Actions CI. The process fails and displays errors like:
npm ERR! code 1 npm ERR! path /runner/_work/myapp/node_modules/nx npm ERR! command failed npm ERR! command sh -c node ./bin/post-install npm ERR! /runner/_womyapp/node_modules/nx/src/native/index.js:244 npm ERR! throw loadError npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module '@nx/nx-linux-x64-gnu'
NX Missing Platform Dependency
The Nx CLI could not locate or load the native binary for your supported platform (linux-x64). This suggests that optional dependencies may not have been installed correctly, or there may be missing system dependencies on your system. For further details, please refer to
Error: Process completed with exit code 1.