You just need to write the package into dependency or devDependency in package.json. Because the source files of the package have actually been downloaded to the node_module folder of your project, adding this sentence to package.json is just to ensure that you can install the dependent resources through npm i in the future
It is also possible to reinstall it. If npm finds that this package has already been installed, it will skip the installation
You just need to write the package into dependency or devDependency in package.json. Because the source files of the package have actually been downloaded to the node_module folder of your project, adding this sentence to package.json is just to ensure that you can install the dependent resources through npm i in the future
Reinstallation is also very fast. You don’t need to download it. You just check it and add the library name to the package file.