cipm
cipm copied to clipboard
npm 6.0.0 ci --only=dev does not install anything
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
Seems --only=dev does nothing, I see the same behavior.
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)