webpack-contrib / postcss-loader

PostCSS loader for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot "npm ci" with ci/cd pipeline

huineng opened this issue · comments

Bug report

Actual Behavior

npm ci is not working when using ci/cd tools

Expected Behavior

npm ci should be working

How Do We Reproduce?

normal versions
node

It is difficult to reproduce.. but here i go

It happens when upgrading from 7.1.0 to 7.2.4
on my local machine, mac everything is working fine
npm ci
npm install
npm install --package-lock-only
delete node_modules, package_lock

everything is working fine

but we have a ci/cd pipeline on private github and one of the first steps is a simple npm ci

but then i see this error

npm ERR! code EUSAGE
npm ERR! 
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! Missing: ts-node@10.9.1 from lock file
npm ERR! Missing: @cspotcode/source-map-support@0.8.1 from lock file
npm ERR! Missing: @tsconfig/node10@1.0.9 from lock file
npm ERR! Missing: @tsconfig/node12@1.0.11 from lock file
npm ERR! Missing: @tsconfig/node14@1.0.3 from lock file
npm ERR! Missing: @tsconfig/node16@1.0.3 from lock file
npm ERR! Missing: arg@4.1.3 from lock file
npm ERR! Missing: create-require@1.1.1 from lock file
npm ERR! Missing: diff@4.0.2 from lock file
npm ERR! Missing: make-error@1.3.6 from lock file
npm ERR! Missing: v8-compile-cache-lib@3.0.1 from lock file
npm ERR! Missing: yn@3.1.1 from lock file
npm ERR! Missing: @jridgewell/trace-mapping@0.3.9 from lock file

do you have any idea what is causing this ? these are all packages i can find back in your package-lock but not on mine

anything to do with peer dependencies ?

i have it installed as a dev-dependency
cloud
registry.access.redhat.com/ubi8/nodejs-18:1
node v18.14.2
npm 9.5.0

thanks

maybe i need to add a .npmrc file with legacy-peer-deps=true

closing this it was caused by my local .npmrc file that was only local