参考文献:https://www.cnblogs.com/xwwin/p/5844182.html?utm_source=itdadao&utm_medium=referral
另一种删除node_modules的方式,通过安装rimraf来删除,更接近前端,也是这篇博客的读者seaton的留言分享方法,亲测可行,非常感谢,特记录下来。
npm install rimraf -g
rimraf node_modules
rmdir /s/q your_app_dir
/s 是代表删除所有子目录跟其中的档案。
/q 是不要它在删除档案或目录时,不再问我 Yes or No 的动作。
要删除的目录前也可以指定路径,如: rmdir /s/q d:\123\abc
输入命令:cnpm install node-sass@latest
Error: Can't find Python executable "python", you can set the PYTHON env variable
npm install --global --production windows-build-tools