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:
- [Solved] Node sass version 7.0.0 is incompatible with ^ 4.0.0 | ^ 5.0.0 | ^ 6.0.0
- 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: OS X Unsupported archi
- Vue installs sass loader directly, and node sass reports an error
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: Windows 64-bit with
- 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] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Error: EBUSY: resource busy or locked, lstat ‘D:\DumpStack.log.
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- [Solved] Vue Project Error: Module build failed: Error: Missing binding
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] NPM err! Cannot read property ‘parent’ of null npm ERR! A complete log of this run can be found in: npm ERR!
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] SyntaxError: Cannot use import statement outside a module
- How to Solve Vue cli configuration SCSS global variable error
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function