Closed
Description
When trying to run a patch-package during a Docker build on CI (Gitlab) it fails with the following error.
npm WARN lifecycle <packagename>~postinstall: cannot run in wd <packagename> patch-package (wd=/app)
In order to fix this you need to add a .npmrc
file with the following declaration making sure to copy the file to your Dockerfile.
unsafe-perm = true
The above information should be added to the README.md
file for other users
Metadata
Metadata
Assignees
Labels
No labels