cipm icon indicating copy to clipboard operation
cipm copied to clipboard

npm 6.0.0 ci --only=dev does not install anything

Open victorandree opened this issue 7 years ago • 2 comments

I was asked to open a corresponding issue for this problem in this repository. I won't copy the full body of that issue to this one, though. Here's the minimum repro though:

$ mkdir test-npm-ci-only-dev
$ cd test-npm-ci-only-dev
$ npm install -D typescript
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
added 1 package from 1 contributor in 1.246s
$ rm -r node_modules/
$ npm ci --only=dev
added 0 packages in 0.019s

victorandree avatar May 02 '18 07:05 victorandree

Seems --only=dev does nothing, I see the same behavior.

DanielRuf avatar Jun 12 '18 15:06 DanielRuf

The fix might be to merge this PR: https://github.com/zkat/cipm/pull/60

Other issue, slightly related: NODE_ENV=development npm ci installs everything. I would expect it to install only devDependencies. (node v10.15.1, npm 6.7.0)

heidemn avatar Feb 08 '19 20:02 heidemn