在使用nmp run dev 启动vue项目的时候出错:
Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (83)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.12.0
at module.exports (C:\depsupport\javaworkspace\hsbs-cms-vue\node_modules\node-sass\lib\binding.js:13:13)
at Object.<anonymous> (C:\depsupport\javaworkspace\hsbs-cms-vue\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object.sassLoader (C:\depsupport\javaworkspace\hsbs-cms-vue\node_modules\sass-loader\lib\loader.js:46:72)
一开始我以为是node版本的问题,查看了一下node版本是10,然后我又下载了最新的版本14.3的但是发现还是有这个问题,于是
重新安装了node-sass,但是还是出现这个问题,
然后我就使用npm uninstall -save node-sass卸载node-sass
使用npm install node-sass --save重新安装了一下,无意间发现了安装完打印出来的日志
fixed 654 of 670 vulnerabilities in 1330 scanned packages
5 vulnerabilities required manual review and could not be updated
7 package updates for 11 vulnerabilities involved breaking changes
(use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)
让使用npm audit fix --force 或者是npm audit 去手动修复一些问题,
然后我就执行了npm audit fix ,我多执行了几次然后用启动我的vue项目就可以了