yarn & node-sass module download failed settlement

node-sass module failed to download


When you create a project, from time to time encounter downloaded to the case of node-sass module will suddenly being given as follows:
An error
After Finding information found above article, has effectively solved the problem, the solution is as follows:
1. The first mirror may be set to Taobao image:
Set Taobao mirror
Configuring the node-sass mirror address binary package:
Yarn config -g SET sass_binary_site http://cdn.npm.taobao.org/dist/node-sass

This effectively solves the problem of node-sass installation unsuccessful.

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

yarn question can not be used


* The project creation process also discovered a problem, not the same as the address set up with their own set of mirrors, such as:
After setting the address is incorrect
this has led to errors are:
Error message
Download directly inaccessible, the solution is as follows:
1. Check the installation position of the yarn of the global :
yarn global dir
2. ensure yarn path has been configured in a global environment variable in the user variables:
Here Insert Picture Description
3. locate .yarnnrc file in the root directory of the direct path handwriting
Here Insert Picture Description
Here Insert Picture Description
so the problem is effectively solved, you can continue to use vue create [item name] to create project.

Released six original articles · won praise 4 · Views 157

Guess you like

Origin blog.csdn.net/weixin_45072479/article/details/104388210