NISHIO Hirokazu[Translate]
npmの--save
付けて害はないが、2021年現在意味のないオプションである。2017年のnpm@5からデフォルトの挙動になったため。

> npm install saves any specified packages into dependencies by default.
> Additionally, you can control where and how they get saved with some
> additional flags:
> ...
> * --no-save : Prevents saving to dependencies .

>Breaking Changes
> npm will --save by default now. Additionally, package-lock.json will be automatically created unless an npm-shrinkwrap.json exists.


"Engineer's way of creating knowledge" the English version of my book is now available on [Engineer's way of creating knowledge]

(C)NISHIO Hirokazu / Converted from [Scrapbox] at [Edit]