第一种: npm install -g remove-node-modules remove-node-modules 第二种: npm install rimraf -g rimraf node_modules