Failed to install Node-sass solution

Original author: snail turn from the link: learnku.com/articles/50…

  • View the NPM configurationnpm config list
    1. Switch NPM source to Taobao source

      npm config set registry https://registry.npm.taobao.org
    2. Install YARN globally using NPM

      npm install -g yarn

If an error occurs when you run the yarn command, add the PATH obtained by NPM bin -g to the PATH environment variable.

  • View yarn configuration yarn Config list

    1. Switch the YARN source to the Taobao source

      yarn config set registry https://registry.npm.taobao.org
    2. Yarn Command Reference
  • Add sass-binary-site to config

    1. yarn config set sass-binary-site https://npm.taobao.org/mirrors/node-sass
    2. npm config set sass-binary-site https://npm.taobao.org/mirrors/node-sass
  • Run yarn install or yarn