background
There are conflicts in the installation of some node packages on the company's machine. At this time, I want to clean up the existing node package cache and re-install the node package. But which path is the node_module directory?
Solution
1. Check the directory of node_modules and execute: npm root -g
2. View the directory where the npm executable file is located: npm bin -g
3. We can also modify the working directory of npm.
npm config set prefix /usr/local
Blogger: Test to make money
Motto: Focus on testing and automation, and strive to improve R&D efficiency; through testing and diligence to complete the original accumulation, through reading and financial management to financial freedom.
csdn:https://blog.csdn.net/ccgshigao
Blog Park: https://www.cnblogs.com/qa-freeroad/