npm install 不下载最新的包 [英] npm install NOT dowloading latest package

查看:201
本文介绍了npm install 不下载最新的包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[上下文]我在使用npm install"命令使用最新的依赖项更新我的 package.json 时遇到问题.

我正在使用 Multibranch Pipeline 在 Jenkins slave 上运行,不确定这是否是原因?

还有一个帖子有类似的问题,但没有得到答复......[我期待什么]
如果npm install"是正确的命令,我想通过运行一些命令来获取我的 package.json ?谢谢一百万!!

解决方案

我发现 npm update 命令可以帮助我将 package.json 更新到最新的可用版本.但不确定我是否在做正确的事情......仍然欢迎输入!!TKS!!

[最终答案]

原来问题是由我们公司的 IT 防火墙设置引起的.出于安全原因,防火墙会间歇性地伪造 SSL 证书.发生这种情况时,下载最新包会失败,并且不会显示错误消息.

[context] I have a problem to use "npm install" command to update my package.json with latest dependencies.

I am running on a Jenkins slave with Multibranch Pipeline, not sure if this is the cause?

There is another post having a similar issue, but not been answered ... NPM package.json not updating after npm install

Here is my package.json

  "dependencies": {
    "@company/ai-integration-test": "^1.0.1-NIGHTLY",
    "@company/ai-portal": "^1.0.1-NIGHTLY",
    "@company/ai-portal-lambdas": "^1.0.1-NIGHTLY"
  }

Here is the result for "npm outdated" [What do I expect]
I would like to get my package.json by running some command if "npm install" is the correct command to use? Thanks a million !!

解决方案

I found npm update command helps me to update package.json to the latest available version. But not sure if I am doing the right things though ... inputs are still welcome !! TKS !!

[Final Answer]

It turns out the problem was caused by our company's IT firewall settings. The firewall intermittently forge SSL certificate for security reasons. When that happens, downloading latest package fails without giving error messages.

这篇关于npm install 不下载最新的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆