The react front-end project reported an error when installing the dependency with the yarn install command. After reading the error message, it was compiled and reported an error during node sass installation. Solution: Step 1: configure Taobao image yarn config set registry https://registry.npm.taobao.org -g
Step 2: configure the binary package image address of node sass yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
Reference: https://www.jianshu.com/p/b37aa202da5c
Similar Posts:
- [Solved] Error:Node Sass version 6.0.0 is incompatible with ^4.0.0
- Node sass installation error [How to Solve]
- Node.js is upgraded from 12. X to 14. X. the original Vue project starts with an error
- Mac uniapp Compile Error: sass-loader [How to Solve]
- How to Solve Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor’
- [Solved] Module build failed: from ./node_modules/mini-css-extract-plugin/dist/loader.js
- Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupport..
- [Solved] NPM Error: gyp verb which failed Error:not found: python2
- [Solved] Module build failed: Error: Cannot find module ‘node-sass’
- [Solved] Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.