Home >Web Front-end >JS Tutorial >Solution to node-sass installation error
This article introduces the solution to the node-sass installation error. I hope it will be helpful to friends who are learning nodejs and sass!
Error report:
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb check python checking for Python executable "python" in the PATH
Solution:
Mainly because the windows platform lacks a compilation environment,
1. Run first: npm install - g node-gyp
2. Then run: Run npm install --global --production windows-build-tools to automatically install the cross-platform compiler: gym
More related tutorials, Please visit PHP Chinese website.
The above is the detailed content of Solution to node-sass installation error. For more information, please follow other related articles on the PHP Chinese website!