Installation of Webpack
To run Webpack, we need Node.js, the linchpin of server-side JavaScript. This platform can be downloaded as an installer of Node.js. The Node Package Manager (npm), a management software for JavaScript dependencies, is also included in this download and will be installed immediately.
So that npm knows what it has at its disposal, the case still has to be packed. The packing list of this is listed in the package.json file. Here all dependencies (dependencies) including version and their limits are defined. A more detailed documentation of npm is also available.
Now that we have the necessary parts together, the exciting part comes. Open the command line, navigate to the root directory of the project and start with the command "npm install". Now all modules listed in the package.json file will be downloaded. The nice thing about it is that npm detects if there are further dependencies for this module and loads them. If this were so easy when packing suitcases, you would never forget anything again. "I want sun!" and swish, the sunscreen and sun hat are included.
Since all dependencies are downloaded individually, the download may take some time. All downloads are automatically saved in the folder "node_modules".
And don't forget - there are also alternatives to npm, such as Yarn. Evil tongues say yarn is faster. Good news - that is the case. The call to Yarn after the installation is almost the same as that of npm namely "yarn install".