2022-06-13-node-saas error
System environment
- node -v v16.15.0
- node-gyp -v v3.8.0
- System Darwin 21.3.0
Screenshot of error reporting
The local code execution npm install
depends on the installation items. The console displays an error message. The screenshot of the error message is as follows:
Error reporting solution
The project relies on “node-sass”: “^4.12.0”. Replace node-sass with sass
- implement
node uninstall node-sass
- Execute
node install sass
, the installation is successful. The screenshot is as follows:
The project can be started normally, and the interface is as follows:
Error report analysis:
- The node version is 16.15.0, the system environment is the macOS m1 version, and node-sass has not yet been adapted, so the resulting
- Replace node-sass with sass
Reference:
https://stackoverflow.com/questions/68095626/node-sass-with-apple-m1-big-sur-and-arm64
Read More:
- NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment:
- [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 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] 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] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- package.json Scripts configuration environment variable distinguishes development environment from production environment
- [Solved] This.getoptions is not a function when installing sass loader and less loader
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- Vue Use scss Error: this.getOptions is not a function [How to Solve]
- Ts-node Error: return new TSError(diagnosticText, diagnosticCodes);
- [Solved] This dependency was not found: * core-js/modules/es.error.cause.js in ./node_modules/_@babel_runtim
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- node.js yarn Error: SyntaxError: Unexpected string [How to Solve]
- [Solved] start value has mixed support, consider using flex-start instead
- Using ts-node to Execute .ts files Error [Solved]
- [Solved] Vue Error: /sockjs-node/info?t=