1.方法一: 在git shell窗口用rm -rf node_modules 2.方法二: 这个其实就是rm -rf命令 npm install rimraf -g rimraf node_modules