--- mirrorId: npm --- ### Yarn #### 临时修改 ```bash yarn add --registry https://mirrors.zju.edu.cn/npm ``` #### 永久修改 ```bash yarn config set registry https://mirrors.zju.edu.cn/npm ``` ### NPM #### 临时修改 ```bash npm install --registry=https://mirrors.zju.edu.cn/npm ``` #### 永久修改 ```bash npm config set registry https://mirrors.zju.edu.cn/npm ```