Selenium webdriver Nexus NPM can';t代理最新的selenium webdriver版本

Selenium webdriver Nexus NPM can';t代理最新的selenium webdriver版本,selenium-webdriver,npm,nexus,Selenium Webdriver,Npm,Nexus,我有一个Nexus NPM存储库设置,它代理默认注册表 我正在尝试安装量角器,这取决于硒-webdriver@2.45.1. 然而,由于一些奇怪的原因,这个版本的SeleniumWebDriver模块没有得到代理,并返回404。手动安装时也会发生这种情况: npm install selenium-webdriver@2.45.1 以下是回应: npm http fetch GET http://xxxxx/selenium-webdriver-2.45.1.tgz npm http fet

我有一个Nexus NPM存储库设置,它代理默认注册表

我正在尝试安装量角器,这取决于硒-webdriver@2.45.1. 然而,由于一些奇怪的原因,这个版本的SeleniumWebDriver模块没有得到代理,并返回404。手动安装时也会发生这种情况:

npm install selenium-webdriver@2.45.1
以下是回应:

npm http fetch GET http://xxxxx/selenium-webdriver-2.45.1.tgz 
npm http fetch 404 http://xxxxx/selenium-webdriver-2.45.1.tgz
npm ERR! fetch failed http://xxxxx/selenium-webdriver-2.45.1.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 404
当我尝试安装以前的版本2.44.x和2.43.x时,我也得到了这个响应

2.42.1及更高版本安装良好。 其他模块的代理也没有问题

有没有人对造成这种情况的原因有什么建议?这是Nexus配置问题吗

编辑:要添加,我使用的是Sonatype Nexus版本2.11.2-06

此外,我还深入研究了不同的SeleniumWebDriver包.json版本。也许这是相关的

区别在于:

2.42.1(最后工作版本):

2.45.1(所需版本):

也许NPM版本的差异是相关的

编辑2:Nexus日志在尝试获取模块时显示此异常:

2015-05-07 09:29:08,048+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 0/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460
2015-05-07 09:29:08,454+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 1/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460
2015-05-07 09:29:08,939+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 2/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095840
2015-05-07 09:29:09,314+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 0/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460
2015-05-07 09:29:09,939+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 1/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4096000
2015-05-07 09:29:10,392+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 2/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460

没有Nexus它能工作吗?这将允许您隔离问题是否与Nexus或包上游的元数据以及工具的其余部分有关。尝试右键单击代理repo并运行“expire cache”,这将强制重新提取远程元数据。如果此操作无法解决此问题,请检查nexus.log,查看在尝试访问远程时是否出现网络错误。感谢您的回复。Manfred,是的,我在没有Nexus的情况下尝试过,直接从NPM注册表安装。这个很好用@rseddon尝试了“过期缓存”选项,但这并没有改变任何事情。但是谢谢你关于检查日志的建议。将记录ConnectionClosedException,并显示消息“内容长度分隔的消息正文过早结束”。我已经将完整的日志输出添加到主帖子中。
  "engines": {
    "node": ">= 0.10.x"
  },
  "dependencies": {
    "adm-zip": "0.4.4",
    "rimraf": "^2.2.8",
    "tmp": "0.0.24",
    "ws": "^0.7.1",
    "xml2js": "0.4.4"
  },
  "devDependencies": {
    "express": "^4.11.2",
    "mocha": ">= 1.21.x",
    "multer": "^0.1.7",
    "promises-aplus-tests": "^2.1.0",
    "serve-index": "^1.6.1"
  },
  "scripts": {
    "test": "mocha --harmony -t 600000 --recursive test"
  },
  "_id": "selenium-webdriver@2.45.1",
  "_shasum": "6fc6a8ce385085a7b670edd36a379b2eddadf2c9",
  "_from": "selenium-webdriver@2.45.1",
  "_npmVersion": "2.5.1",
  "_nodeVersion": "0.12.0",
  "dist": {
    "shasum": "6fc6a8ce385085a7b670edd36a379b2eddadf2c9",
    "tarball": "http://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-2.45.1.tgz"
  },
  "directories": {},
  "_resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-2.45.1.tgz"
}
2015-05-07 09:29:08,048+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 0/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460
2015-05-07 09:29:08,454+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 1/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460
2015-05-07 09:29:08,939+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 2/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095840
2015-05-07 09:29:09,314+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 0/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460
2015-05-07 09:29:09,939+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 1/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4096000
2015-05-07 09:29:10,392+0200 WARN  [qtp8401575-718] anonymous com.bolyuba.nexus.plugin.npm.service.tarball.internal.TarballSourceImpl - Fetch 2/3 failed for selenium-webdriver@2.45.1 tarball: org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 4797844; received: 4095460