Skip to content

Patch Package fails on Gitlab CI (Docker) #185

Closed
@katoha

Description

@katoha

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close