前端 | node 版本升级后 vue 项目启动错误(node-sass sass-loader) | Vue2
前言
开始使用低于 vue-cli3
创建的项目,在更新node
到 12.x
后,项目运行不起来了
问题描述
node 版本升级后旧的 vue 项目启动报错
- 错误类型1
node Sass could not find a binding for your current environment: Windows 64-bit with node.js 12.x
Found bindings for the following environments:
– Windows 64-bit with node.js 8.x
– Windows 64-bit with node.js 12.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
尝试执行命令 npm rebuild node-sass
,,提示安装 Python
环境
Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
- 错误类型2