yarn全局安装位置
时间: 2023-10-12 11:06:47 浏览: 147
要修改yarn的全局安装位置,可以使用以下命令:yarn config set global-folder "D:\software\Yarn\Data\global"。这将把全局安装位置设置为"D:\software\Yarn\Data\global"。另外,还可以通过运行命令yarn global dir来查看当前的全局安装位置。如果要修改全局bin位置,可以使用命令yarn config set prefix "D:\software\Yarn\Data"。这将把全局bin位置设置为"D:\software\Yarn\Data"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [npm/yarn ---- 全局依赖安装路径的查询和修改](https://blog.csdn.net/m0_38082783/article/details/117961668)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [Windows系统下Yarn安装、更改全局位置](https://blog.csdn.net/weixin_44182651/article/details/128162989)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文