Some styles written by sass are used in the project, but errors are reported every time they are compiled
According to the above reminder, NPM rebuild node sass — force is still wrong. But looking at his error message carefully, I found this one:
gyp verb could not find “C:\Users\myh\AppData\Local\Programs\Python\Python36\python.EXE”. checking python launcher
gyp verb could not find “C:\Users\myh\AppData\Local\Programs\Python\Python36\python.EXE”. guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable “C:\Users\myh\AppData\Local\Programs\Python\Python36\python.EXE”, you can set the PYTHON env variable.
Ha ha, now I know. That is to say, I don’t have Python environment variables locally. Is this node sass written in Python
With doubts, I downloaded the latest Python installation, and then configured the following environment variables according to the above:
Then, with an uneasy mood, knock down: NPM install node sass — save
Yes, installation succeeded
continue to compile the development environment, and the compilation is successful
congratulations ~ ~ ~
Similar Posts:
- [Solved] NPM downloads the dependency of the front-end Vue admin template master template Error
- Solution to node sass error reporting
- Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x
- [Solved] Error:Node Sass version 6.0.0 is incompatible with ^4.0.0
- Python: How to Solve raise JSONDecodeError(“Expecting value”, s, err.value) from None json.decoder…
- Tensorflow ImportError: DLL load failed with error code -1073741795
- How to Solve Python Error: “HTTP Error 403: Forbidden”
- Module build failed: Error: Cannot find module ‘node-sass’
- [Solved] Node.js: Python not found exception due to node-sass and node-gyp
- [Solved] json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)