![make file npm install modules make file npm install modules](https://resources.jetbrains.com/help/img/idea/2021.3/ws_launch_npm_script_from_package_json_debug_dark.png)
yarn add -devįurther you might need to run npm audit fix -force command also. npm install -save-dev if you use yarn run the below command. If the above method is not working, then install package as dev dependency in the new versions of Angular. Solution 2 : Install package as a dev dependency So delete the node_modules folder manually from the application directory.Īfter that clear the cache using npm cache clean -verify.Īs package.json will have latest updated versions, npm will install all the required packages again to run the Angular application. If you are upgrading from older version to newer version the package.json file will be updated accordingly.īut our local Angular application will have older versions of packages installed in node_modules folder. Reinstall 1: Delete node_modules folder and run npm install.
![make file npm install modules make file npm install modules](https://docs.npmjs.com/packages-and-modules/securing-your-code/audit-report-suggested-fixes.png)
#MAKE FILE NPM INSTALL MODULES UPDATE#
If you update your Angular application to newer version you might get Could not find module error while building or running the application.