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
0
votes
0 answers
Lock module versions in package-lock.json
My packge-lock.json currently looks something like this
"dependencies": {
"packageA": {
"version": "2.2.0",
"requires": {
"packageA1": ">=0.1.1",
"packageA2": ">=0.3.17"
},
"dependencies": {
...
…

PTN
- 1,658
- 5
- 24
- 54
0
votes
0 answers
Running NPM install locally deletes required packages from my package-lock.json. This causes Git actions to fail when running NPM ci?
When I run npm install, remove or add any package (or do anything that changes the local package.json) and commit to a PR branch, I get the following error in the github actions "run npm ci" build.
npm ERR! `npm ci` can only install packages when…

Chris
- 1
0
votes
0 answers
why npm clean install is working unexpected?
I have installed version 1.0.0 of a library and then updated package.json file with version 1.1.0, then I have run the 'npm ci' command, it's installed the latest version and not refering the version from package-lock.json file, Why its behave…

Abasaheb Gaware
- 509
- 4
- 13
0
votes
0 answers
React App wont run using npm run dev, by use of concurrently
I am working on a React app that I just pulled down from Github. I ran an npm ci once pulled down and opened the project hoping it would run. I'm getting an error when I am trying to run the client and server using npm run dev by use of…

Sam
- 88
- 9
0
votes
1 answer
Vue-CLI project automatic deployment on Firebase Hosting using GitHub actions
So I am having my Vue-CLI project and I can't manage automatic deployments.
I've been googling all day, I got the key from firebase login:ci but I don't understand where am I supposed to place it inside of a yaml files.
I did add the FIREBASE_TOKEN…

Mike K.
- 637
- 1
- 5
- 18
0
votes
1 answer
Bypass NPM cache, if the module that I'm looking for is not there
While working with NPM and its cache, I noticed that -sometimes- when the newest version of a certain package is not in the cache, npm ci errors out without bypassing NPM cache.
Is there a way to tell NPM something like "If the package you're…

Guillermo
- 1,493
- 3
- 16
- 35
0
votes
0 answers
Gitlab CI - caching Node.js dependencies
I'm having significant problems trying to reuse the packages installed with npm ci between jobs. I have been following this documentation: https://docs.gitlab.com/ee/ci/caching/#cache-nodejs-dependencies, but the packages are reinstalled each step…

Ben K
- 33
- 6
-1
votes
1 answer
Installing freeCodecamp locally hangs when I get to the npm ci step
I've been trying to install freeCodeCamp repo locally coz I'm doing the Full-stack curriculum and I am in a remote area where the grid is not reliable.
I've got the repo on my compute already. I've also installed MongoDB and Nodejs and Npm,…

Lidhiwa
- 1
- 2