The yarn node sass installation reported an error

The react front-end project reported an error when installing the dependency with the yarn install command. After reading the error message, it was compiled and reported an error during node sass installation. Solution: Step 1: configure Taobao image yarn config set registry https://registry.npm.taobao.org -g

Step 2: configure the binary package image address of node sass yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

Reference: https://www.jianshu.com/p/b37aa202da5c

Similar Posts: