Home  >  Article  >  Web Front-end  >  Solution to node-sass installation error

Solution to node-sass installation error

angryTom
angryTomforward
2020-02-13 17:52:494874browse

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!

Solution to node-sass installation error

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete