Vue框架可以很方便的引入各种插件,但是也因此会经常遇到种编译报错,解决起来很耗时,现在将平时遇到的一些编译报错,以及解决方法收录于此。
1、Module build failed: Error: Cannot find module 'node-sass'
问题:
Module build failed: Error: Cannot find module 'node-sass'
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.13.0
以上问题在解决的过程中,期间可能会变形的出现其它与之相关的各种问题,但报这种问题的根源可能是本地环境原因。主要是由于本地的nodejs版本与node-sass的版本不匹配兼容。
解决方法:
- 查看报错中的地址https://github.com/sass/node-sass/releases/tag/v4.13.0&#