To find the stackoverflow solution, set the npm environment variable
$ npm set SKIP_SASS_BINARY_DOWNLOAD_FOR_CI = true
$ npm set SKIP_NODE_SASS_TESTS = true
Then use the command to clear the cache and reinstall sass-loader
$ npm cache clean –force
$ npm install sass-loader –dev-save
Similar Posts:
- Use sass and less in Vue and solve the problem of error reporting (this. Getoptions is not a function)
- Module build failed: TypeError: this.getResolve is not a function at Object.loader node-sass Install Error
- [Solved] Error:Node Sass version 6.0.0 is incompatible with ^4.0.0
- Mac uniapp Compile Error: sass-loader [How to Solve]
- [Solved] Module build failed: from ./node_modules/mini-css-extract-plugin/dist/loader.js
- Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x
- NPM run dev Error: this.getOptions is not a funtion
- After npm5, execute NPM cache clean and report an error
- [Solved] Vue installs less Error: Failed to compile with 1 errors
- [Solved] Module build failed: Error: Cannot find module ‘node-sass’