Install al dependencies from package.json

Hi @nraboy, I think I heard you comment in a video that a command that would install all the dependencies of the package.json file in a project would be good, that is precisely what the following command does:

$ npm install

Install all dependencies from package.json

1 Like

Using just npm i works too or yarn if you’re using yarn for your project

1 Like

I don’t recall my comment, but now I’m curious if you find the video :-).

You sure I wasn’t referring to installing dependencies that were actually used rather than dependencies that were listed in the package.json?

1 Like

@nraboy maybe you are right and you meant installing dependencies that were actually used rather than dependencies that were listed in the package.json, I thought you refer to dependencies listed in the package.json, but I should be wrong, don’t remember exactly in which video I listened it.

Maybe installing dependencies that were actually used could be achieved with some VSCode extension.

I think you should check out Quokka.js PRO which is a nice VS Code extension that provides this package install feature.