For me, it was caused by enabling legacy-peer-deps
globally via ~/.npmrc
config file. It was adding dev: true
to package-lock.json
file and caused the CI/CD pipeline to fail as mentioned by gordey4doronin above. The fix was removing legacy-peer-deps=true
from ~/.npmrc
file