本地搭建renren -vue,启动时出现问题,记录一下
error in ./src/App.vue
Module build failed: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (59)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.5.3
at module.exports (/Users/crifan/dev/dev_root/daryun/Projects/上汽大众/斯柯达/总部报表/sourcecode/web_admin/HeadquarterReport/node_modules/node-sass/lib/binding.js:13:13)
node 9 Module build failed Error Node Sass does not yet support your current environment OS X 64-bit with Unsupported runtime 59
尝试:
npm rebuild node-sass
之前,看到之前已有node-sass:
"node-sass": "^4.5.0”,
怀疑版本太低?
所以卸载后重装
然后结果就解决了此问题了。
【总结】
此处是Vue环境下,把node从8.0.0升级到9.0.0导致了,之前已安装的4.5.2的Node Sass报错了。
解决办法是:
卸载重装(最新版本的node-sass)即可:
npm uninstall node-sass -D
npm install node-sass -D
此处安装的node-sass最新版是4.6.0