Difference between 'npm add' and 'npm install --save'?

theVoogie picture theVoogie · Jul 22, 2018 · Viewed 7.5k times · Source

I've searched through the web and still can't get if there is any difference between npm add <package> and npm install --save <package>.

Thanks.

Answer

SamVK picture SamVK · Jul 22, 2018

npm install and add are aliases. The --save option is deprecated.

Since NPM 5, packages are saved automatically; there is no --save option.