After importing the Vue project, #npm run dev reported an error:
1
2
|
error in ./src/pages/hello.vue Module build failed: Error: Node Sass does not yet support your current environment....... |
Roughly it is a failure to compile a certain vue file, because the module fails to be constructed, and node sass does not support the current environment [mainly node].
Let’s take a look at the node version first:
#node –version
Upgrading the node version/node version is too high will cause node-sass incompatibility, then just install node-sass again.
1
|
#npm i node-sass -D |
[<==>#npm install node-sass -save-dev]
Read More:
- Vue installs sass loader directly, and node sass reports an error
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: Windows 64-bit with
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: OS X Unsupported archi
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment:
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- How to Solve Vue cli configuration SCSS global variable error
- [Solved] SyntaxError: Cannot use import statement outside a module
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Vue Project Error: Module build failed: Error: Missing binding
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- [Solved] Error: EBUSY: resource busy or locked, lstat ‘D:\DumpStack.log.