The preface

Some projects need to install Node-sass when using SCSS, but some Windows computers will ask you to install Python

The solution

Install the Windows build-tools tool

npm install --global windows-build-tools --save
Copy the code

Pay attention to

  1. Some Windows installation may be wrong, mainly Windows part of the file is not installed
  2. After the installation is complete, it will automatically run some scripts, some anti-virus software will have a response, allow it

complete

And there you go