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.
The above information should be added to the README.md file for other users
When trying to run a patch-package during a Docker build on CI (Gitlab) it fails with the following error.
In order to fix this you need to add a
.npmrcfile with the following declaration making sure to copy the file to your Dockerfile.The above information should be added to the
README.mdfile for other users