npm ci is a command in the npm CLI that Installs a project with a clean slate. This command is similar to npm-install, except it’s meant to be used in automated environments. This tag should be used for questions specifically relating to the npm ci command, and not the npm install command.
Questions tagged [npm-ci]
38 questions
2
votes
1 answer
npm ci command fails in GitHub actions when running on Node 16
I'm running npm ci on Node 16 in GitHub workflow actions and keep getting the following error:
npm ERR! code E401
npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication…

David Faizulaev
- 4,651
- 21
- 74
- 124
2
votes
0 answers
NPM audit not finding vulnerabilities
I have a CI service that runs npm audit on every build and notifies if there are high-risk vulnerabilities. The strange thing is when CI reports high vulnerabilities when I run npm audit locally, it says found 0 vulnerabilities. It will find the…

nrofis
- 8,975
- 14
- 58
- 113
2
votes
0 answers
npm ci in Jenkins parallel pipeline
I've got a monorepo with roughly the following structure (npm modules):
myProject
|-base
|-ui1
|-ui2
In the base module I have all the stuff combined which my ui1 and ui2 projects use commonly. I use npm local paths to add the base module as a…

nioe
- 756
- 1
- 7
- 15
2
votes
2 answers
npm ci not working on bitbucket pipeline?
I have a react-native project and I'm trying to use bitbucket pipeline to run the tests and export to expo.
For that I tried to follow this article, but it fail with the following output :
+ npm ci
npm ERR! path git
npm ERR! code ENOENT
npm ERR!…

baraber
- 3,296
- 27
- 46
1
vote
0 answers
Lerna + npm packages - how do I run npm install of the build?
I've created a monorepo project with server/client/shared packages.
I have an existing (large) project that I try to apply monorepo behavior to have common code between multiple projects.
I'm using npm wordspaces (I know yarn has better support but…

Yoav Moran
- 107
- 9
1
vote
1 answer
Why "npm ci" removes node_modules / all packages?
Why npm ci removes the node_modules / all packages?
If a node_modules is already present, it will be automatically removed
before npm ci begins its install.

BuZZ-dEE
- 6,075
- 12
- 66
- 96
1
vote
1 answer
VS2017 not able to identify the command npm ci
Node version: 8.11.3
I checked out a solution. It includes package-lock.json.
So, I am trying to run npm ci on the instance.
Unfortunately, it is not working.
I am getting the message:
Usage: npm
where is one of:
access,…

NutsAndBolts
- 341
- 3
- 13
1
vote
0 answers
Should .gitignore be modified to include ./node_modules/.package-lock.json (aka: lockfileVersion 3)?
This is a commonly asked question, but a little different this time. It seems the developers of Node.js have chosen to make NPM register the standard v2 package-lock.json in the project root (or wherever you run your commands from), and subsequently…

Solonotix
- 449
- 3
- 15
1
vote
0 answers
'npm ci' command is not working as expected
I have installed a library with version 1.0.0 and then I have modified package.json file with version 1.0.3 and then I run "npm ci" and expecting it should not update the package as it should refer package-lock.json file. But its updated the package…

Abasaheb Gaware
- 509
- 4
- 13
1
vote
1 answer
Adonis npm ci --production hangs
I have problem when deploying an Adonis project, After building, adonis suggest to do npm ci --production inside build folder. And after I do npm ci --production, the process is hangs
extractTree: sill extract faker@5.5.3 extracted to…

sigit nurmajid
- 11
- 1
1
vote
0 answers
How do you deploy a continuous running app when using npm-cli
I have a largish nodejs based web app, with both server and client components working together. I am currently deploying the app, but using git pull to take my latest production branch from the server repository. A git post-commit hook runs to do…

akc42
- 4,893
- 5
- 41
- 60
0
votes
0 answers
npm error: `lock-verify` throws an error on CI when running `npm ci`
Locally, both npm install and npm ci runs successfully. However, on CI , npm ci breaks with the error npm ERR! Cannot read property '@babel/runtime' of undefined. When I check the logs, it points to an error with lock-verify, even though on…

cyberglot
- 365
- 3
- 32
0
votes
0 answers
npm ci does not respect workspace flag provided using -w or --workspace
installing a project with multiple workspaces (workspace-x, workspace-y, workspace-z) using npm ci -w workspace-x command results in below error
`npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json…

Rimash Mohomed
- 143
- 1
- 12
0
votes
0 answers
Prune npm cache to only packages required by most recent install?
I would like to cache npm dependencies in a file in my Continuous Integration so that subsequent npm ci invocations are fast. Also, when dependencies slightly change, I would like npm ci to be pretty fast by reusing the cached dependencies from the…

yonran
- 18,156
- 8
- 72
- 97
0
votes
0 answers
Install Experience Builder Developer's Version
I am looking to create a custom theme on Experience Builder, possibly an organization theme. It seems that the only way this is possible is through the developer's version of Experience Builder. There is a guide for install which I have followed…

eec
- 1
- 2