During the development process, we may want to reset the global path of npm. The specific method is as follows: npm config set cache "D:/nodejs/node_cache" npm config set prefix "D:/nodejs/node_global"