add the old snippet md files

This commit is contained in:
Travis Shears 2025-06-05 16:20:57 +02:00
parent fc0dd204c7
commit bcf8313a4b
110 changed files with 3048 additions and 0 deletions

View file

@ -0,0 +1,25 @@
---
title: "npm i vs npm ci"
date: 2020-08-17T11:42:34+02:00
draft: false
snippet_types:
- npm
- js
---
Today I discovered `npm ci` from a colleague. It does a clean install wiping out the node_modules
before installing. For me this is perfect because I often find myself doing
```shell
$ rm -rf node_modules && npm i
```
no need just run `npm ci`
**note: you'll still want to do `npm i` when installing packages as `npm ci` does not update package\*..*
source:
- https://docs.npmjs.com/cli/install
- https://docs.npmjs.com/cli/ci