Npm uninstall cannot bulk delete packages

  node.js, question

图片描述

图片描述

Why can’t npm uninstall batch delete the packages under node_modules? npm install batch installation is possible.

Generally, for node projects, the node_modules directory does not upload git. if you want to delete a package from package.json, uninstall –save is fine. if you want uninstall, the upstairs also said, directly, just kill the node_modules folder.
Moreover, depending on the npm you are using, the network speed will be very slow. You can download cnpm from Baidu. This is the domestic source, and the speed is much faster.