yarn install 显示403error
时间: 2023-10-25 16:01:18 浏览: 267
npm install 错误问题 gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\Zhan
回答: 当 yarn install 显示 403 error 时,这是因为你没有访问依赖包的权限。有几种可能的解决方法可以尝试。***有时候网络访问被限制了,会导致下载依赖包失败。
最后,如果以上方法都没有解决问题,你可以尝试清除缓存并重新安装 yarn。运行以下命令:
sudo apt remove cmdtest
sudo apt autoremove yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn
希望这些解决方法能够帮助你解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [使用yarn install出现RequestError: read ECONNRESET](https://blog.csdn.net/weixin_43801836/article/details/121138448)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Ubuntu yarn install错误: Yarn install command error No such file or directory: ‘install‘ 最新解决...](https://blog.csdn.net/qq_42218376/article/details/128973277)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文