npm install and save to package.json code example Example: how to install dependencies from package.json npm install // installs dependencies listed in package.json