Create React App deploy blocked by Corepack permission error
Error recorded 1 times in PanelAlpha Engine deploys on Cra. The deploy log below is the recorded failure output.
TypeErrorAn error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.
Seen1 times
WhereCra
StatusObservedOur team will look into this soon, verify the cause and try to fix it in an upcoming release.
Why it happens
The CRA build runs on the host and Corepack is trying to create the pnpx link under /usr/local/bin. The deploy user cannot write to that system directory, so the build stops before the static assets are compiled. This is an account or host permission issue, not a repository clone failure.
What the log looks like
Deploy log
Starting stage: runningDetected project type: Create React AppUsing strategy: craCompiling static assets on hostInternal Error: EACCES: permission denied, symlink '../lib/node_modules/corepack/dist/pnpx.js' -> '/usr/local/bin/pnpx'Deploy failed: Failed to start app