一、打开文件路径
复制项目的路径
二、打开powershell
win + R 输入 powershell 打开黑窗口
三、切换路径
在黑窗口中 输入
cd 项目的路径
例如: cd G:\residential-property\residential-frontend
四、输入清除命令
Remove-Item -Recurse -Force node_modules
Remove-Item -Force package-lock.json
即可清除成功
五、重新安装依赖
npm install