相关文章推荐
强悍的鸵鸟  ·  Python ...·  9 月前    · 
千杯不醉的丝瓜  ·  python numpy array to ...·  1 年前    · 
多情的莴苣  ·  Linux系统 开启SSH ...·  1 年前    · 
健壮的核桃  ·  Flutter3.3对Material3设计 ...·  1 年前    · 
学习
实践
活动
专区
工具
TVP
写文章

我在安装npm中的nrm,为什么会安装失败?

  • 回答 ( 2 )
  • 关注 ( 0 )
  • 查看 ( 1672 )

PS C:\Users\zyy> npm install nodemon -g

changed 116 packages, and audited 117 packages in 17s

16 packages are looking for funding

run `npm fund` for details

found 0 vulnerabilities

PS C:\Users\zyy> npm install nrm -g

npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated har-validator@5.1.5: this library is no longer supported

removed 222 packages, changed 60 packages, and audited 94 packages in 19s

4 packages are looking for funding

run `npm fund` for details

2 vulnerabilities (1 moderate, 1 high)

To address issues that do not require attention, run:

npm audit fix

To address all issues (including breaking changes), run:

npm audit fix --force

Run `npm audit` for details.

PS C:\Users\zyy> npm audit fix

npm WARN audit request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: Client network socket disconnected before secure TLS connection was established

undefined

npm ERR! audit endpoint returned an erro

PS C:\Users\zyy> npm audit fix --force

npm WARN using --force Recommended protections disabled.

npm WARN audit request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: Client network socket disconnected before secure TLS connection was established

undefined

npm ERR! audit endpoint returned an erro

PS C:\Users\zyy>

用户9678495 用户9678495 提问于
广告 关闭
用户3136460 回答于

安装成功了,警告无需理会

江涛学编程 努力做事,静待花开,相信缘分,未来可期 回答于

当你执行完npm install nrm -g后,nrm包是安装成功了,使用没啥问题,那么上面抛出来的是一些npm WARN以及后面的修复方法提示,其中抛出的警告看了下是一些过时的依赖包,可作了解不用过多关注,然后后面我也看到了你执行一些修复方法,由于国内网络问题,这边建议你用nrm ls查看npm的源,然后用npm use切换到国内的源再试试,或者你可以科X学X上X网再试试

关注

腾讯云 开发者 公众号
10元无门槛代金券
洞察腾讯核心技术
剖析业界实践案例
腾讯云开发者公众号二维码

扫码关注腾讯云开发者

领取腾讯云代金券