rogeriochaves / npm-force-resolutions

Force npm to install a specific transitive dependency version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails in CircleCI

kyeotic opened this issue · comments

This works locally, but errors with the following in CircleCI

#!/bin/bash -eo pipefail
npm install
npm WARN lifecycle dev-portal@3.0.0~preinstall: cannot run in wd dev-portal@3.0.0 npx npm-force-resolutions (wd=/tmp/app)

Please take a look at my comment from another issue on how I managed to resolve it with a dirty workaround.

This doesn't work, because you should be using npm ci with an already patched package-lock.json: https://docs.npmjs.com/cli/ci.html