npm install with dependencies code example
Example 1: npm dev dependencies
# install as devDependency
npm install <package-name> --save-dev
# install as normal dependency
npm install <package-name> --save
# install all devDependencies listed in package.json
npm install --only=dev
# install all normal dependencies listed in package.json
npm install --only=prod
# or if NODE_ENV is set to production
npm install
Example 2: install dependencies npm
npm install
Example 3: how to install node dependencies
#how to install project dependecies when you download project
# example:
npm install
#NOTE:: by entering only this command your all dependecies will automatically installed.
Example 4: npm install and add to dependancies
npm i packageName -save
Example 5: install node modules
npm install --save packageName
npm install --save package1 package2
npm install --save package@version
npm i -s packageName
npm install --save-dev package@version
npm i -D packageName
npm install --global packageName
npm i -g packageName