Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

what is difference between npm install and npm install save --dev

npm install saves any specified packages into dependencies by default. Additionally, you can control where and how they get saved with some additional flags:

-P, --save-prod: Package will appear in your dependencies. This is the default unless -D or -O are present.

-D, --save-dev: Package will appear in your devDependencies.

-O, --save-optional: Package will appear in your optionalDependencies.

--no-save: Prevents saving to dependencies.

tl;dr: the default form of npm install if nothing else is specified is to --save it.
Comment

PREVIOUS NEXT
Code Example
Shell :: copy file batch 
Shell :: apache start stop restart 
Shell :: postgresql cli first time 
Shell :: test cpu linux 
Shell :: python listen on port 
Shell :: open folder vim 
Shell :: windows show environment variables powershell 
Shell :: do not install puppeteer 
Shell :: install express.js 
Shell :: certbot configure 
Shell :: homebrew on mac 
Shell :: homebrew install mac 
Shell :: remove yarn 0.32+git 
Shell :: git commit not showing up in github 
Shell :: Sublime Text install Ubuntu/Debian 
Shell :: set git origin url 
Shell :: git configure upstream 
Shell :: get out of venv 
Shell :: poetry python 
Shell :: bash terminal function display all arguments 
Shell :: install nano in docker container 
Shell :: zip some files linux 
Shell :: how to run docker in ubuntu 
Shell :: install vs code on fedora 
Shell :: rmdir directory not empty 
Shell :: ubuntu install libgcc.i686 
Shell :: install scikit learn 
Shell :: windows ssh-copy-id 
Shell :: could not find tools.jar linux 
Shell :: git language 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =