![]() Hope you found this article to be useful. It is equally important to find outdated packages in npm and to either update them or remove those outdated packages. ![]() It is a good practice to keep the package dependencies on the check and to regularly remove all the unused package dependencies. To conclude I would say that it is very easy to find unused dependencies in package.json using npm packages like depcheck etc. There are many more options that depcheck provides and you can check them out on their official page at. ![]() Also, please note that you need to have nodejs version 10 or greater installed. Step 3: Next, install react router dom using the. foldername, move to it using the following command: cd. Please note that you need to run the commands in the directory where the package.json file can be found since by default it looks for the package.json file in the root directory. Below is the step by step implementation: Step 1: Create a React application using the following command: npx create-react-app foldername Step 2: After creating your project folder i.e. If there were more, it would list all the unused packages in package.json. In the above example, you can notice that after running the npx depcheck command, it runs the tool and lists the unused dependencies which in my case was only bootstrap.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |