DEV Community

Cover image for npm ci vs npm install
BOX PIPER
BOX PIPER

Posted on • Edited on

1 1

npm ci vs npm install

Starting MARCH 5, 2018, all npm users can take advantage of a new install command called npm ci.

npm install :- install new dependencies, or update existing dependencies (e.g. going from version 1 to version 2).

npm ci :- when you want to run continuous integration tools like Jenkins or GitLab, etc., it doesn't modify the package-lock.json file. It’s meant to be used in automated environments such as test platforms, continuous integration, and deployment – or any situation where you want to make sure you’re doing a clean install of your dependencies.

Essentially, npm install reads package.json to create a list of dependencies and uses package-lock.json to inform which versions of these dependencies to install.
To continue reading, head over to Box Piper source.

To read more such interesting topics, follow and read BoxPiper blog.

Support my work and buy me a Coffee. It'll mean the world to me. 😇

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (2)

Collapse
 
boxpiperapp profile image
BOX PIPER

Sure. Currently, we use npm.

Collapse

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay