New solution to node sass installation failure

Time:2020-10-25

The first solution

Online:

  1. https://www.jianshu.com/p/92afe92db99f
  2. https://segmentfault.com/a/1190000018607792

But there is a problem on the Internetnpm install --global --production windows-build-toolsThe build tools cannot be installed without administrative rights

In fact, the best way is the second way

The second solution

The first step

Operationnpm install --save-dev node-sassThen find the GitHub address and download win32-x64-64_ Binding. Node file

New solution to node sass installation failure

Step two

Drag the downloaded file to the following directory

New solution to node sass installation failure

Rerunnpm install --save-dev node-sassThe basic success is as follows:

New solution to node sass installation failure