install dependencies of package.json code example

Example 1: npm install package as developer dependency

npm install --save-dev package
# example:
npm install --save-dev nodemon

Example 2: how to install dependencies from package.json

npm install // installs dependencies listed in package.json

Example 3: what are dependencies in package.json

dependencies are the modules that the project relies on to function properly.

Example 4: how to install node_module

ls node_modules

//this command above is typed when you install a new vueJS project and dont have a 'node_modules', then run npm run serve