Solution to node-sass installation error

angryTom
Release: 2020-02-13 17:52:49
forward
4752 people have browsed it

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 visitPHP 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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn