![]() You will see all the node modules installed locally and a 'package.json' being created with all the node modules saved in 'dependencies' property. Just go inside the demo-project folder and simply run this command below $ npm-install-all NPM global installation and non-global installation (Node V16.13.1 / NPM 8.4.1), Programmer All, we have been working hard to make a technical sharing website that all programmers love. Usage 2 (For a complete project or folder) $ npm-install-allįor example if you want to install all the dependent npm modules for the "demo-project" (currently residing in example folder) Usage 1 (For a specific file) $ npm-install-all Installation $ npm install npm-install-all -g This module recursively checks all the folders (excluding node_modules folder) and files of the project or folder where you are running this command and install the npm packages that you are using in your project, and finally saves it into package.json. You just need to run this module from the project directory. If there exists a package.json, it saves it as dependencies inside it, else creates it. This is a pretty cool module which reduces the work of repetitive installation of npm modules which are not present in your package.json to run an application. This module simply recognizes all the require commands and help you to install all the npm modules and also save it in your package.json.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |