Command to use restoring npm packages

Sam picture Sam · Dec 9, 2017 · Viewed 30.6k times · Source

When I download a project from my repo with a package.json in its root, which command is the right one to use npm install or npm install restore?

Answer

banuj picture banuj · Dec 9, 2017

The behaviour of npm install is

  • npm install without any argument will install all packages found in package.json in node_modules folder.

  • npm install <package_name> will install package_name. In your case will download restore package and will save it in node_modules folder. (https://www.npmjs.com/package/restore)