当前位置: 首页 > news >正文

npm install pnpm -g 报错的解决方法

npm install pnpm -g 报错的解决方法

npm error code ETIMEDOUT
npm error errno ETIMEDOUT
npm error network request to https://registry.npmjs.org/pnpm failed, reason:
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network setti
ngs.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly.  See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\zhangchang\AppDat
a\Local\npm-cache\_logs\2024-08-14T09_39_08_962Z-debug-0.log

在这里插入图片描述
解决方法:
命令行中执行这两个命令,然后再执行npm install pnpm -g

npm config get proxy
npm config rm https-proxy
http://www.lryc.cn/news/426832.html

相关文章:

  • 集师知识付费小程序开发
  • 前端开发提效工具——用户自定义代码片段
  • docker容器安全加固参考建议——筑梦之路
  • 基于 Appium 的 App 爬取实战
  • nvm与node安装
  • 【电子通识】什么是MSL湿敏等级
  • 【ARM 芯片 安全与攻击 5.4 -- Meltdown 攻击与防御介绍】
  • Django 后端架构开发:分页器到中间件开发
  • 亲测解决The client socket has failed to connect to
  • Intel ACRN 安装WIN10 VM
  • 贷齐乐案例
  • [Qt][Qt 网络][下]详细讲解
  • 十三、OpenCVSharp的目标检测
  • STM32标准库学习笔记-6.定时器-输入捕获
  • vue前端可以完整的显示编辑子级部门,用户管理可以为用户分配角色和部门?
  • 量化交易的基石:ExchangeSdk
  • 【区块链+金融服务】基于区块链的一站式绿色金融开放平台 | FISCO BCOS应用案例
  • 使用Python实现深度学习模型:智能娱乐与虚拟现实技术
  • 亚马逊云科技产 Amazon Neptune 图数据库服务体验
  • 【网络安全】重置密码token泄露,实现账户接管
  • 计算机基础知识复习8.13
  • Unity URP无光照下Shadow 制作 <二> 合批处理
  • 微乐校园pf
  • 文件其他相关函数
  • SQLALchemy ORM 的关联关系之 ORM 中的多对多
  • sdkman install慢,采用squid代理
  • 实时监控Windows服务器:使用Prometheus和Grafana的终极方案
  • 【文科生能看懂的】牛顿二项式定理
  • Fly Catcher:通过监测恶意信号来检测飞机欺骗
  • 计算机网络——HTTP协议详解(上)