Background: an error is reported when installing sass for NPM
Installing sass through NPM
npm install node-sass
npm intall sass-loader
The above command installs the latest version. The reason for the error is that the latest version causes getoptions() incompatibility. The solution is to uninstall sass loader node sass and install the lower version. The commands are as follows
npm uninstall sass-loader //uninstall
npm install [email protected] //install 8.0
npm uninstall --save node-sass
npm install [email protected]
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: TypeError: this.getOptions is not a function
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- [Solved] Error: Node Sass does not yet support your current environment
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: OS X Unsupported archi
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment:
- How to Solve Vue cli configuration SCSS global variable error
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] Vue Project Error: Module build failed: Error: Missing binding
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: Windows 64-bit with
- [Solved] Input error: this. Getoptions is not a function
- [Solved] Error: EBUSY: resource busy or locked, lstat ‘D:\DumpStack.log.
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘