Nexus NPM无法代理最新的selenium-webdriver版本

时间:2015-05-06 11:24:17

标签: selenium-webdriver npm nexus

我有一个Nexus NPM存储库设置代理https://registry.npmjs.org的默认注册表。

我正在尝试安装Protractor,它取决于selenium-webdriver@2.45.1。但是,由于一些奇怪的原因,这个版本的selenium-webdriver模块没有代理并返回404.当我手动安装它时也会发生这种情况:

request //STYPE ACTUALLY GETS POPULATED
solicitation.route.js:58 
angular.js:9866 GET http://localhost:3000/app/solicitation/templates/.html 404 (Not Found)
angular.js:11655 Warning: Error routing to Solicitation Details. Cannot GET /app/solicitation/templates/.html

这是回复:

npm install selenium-webdriver@2.45.1

当我尝试安装以前的版本2.44.x和2.43.x时,我也收到了此响应。

版本2.42.1及更早版本安装正常。 其他模块也代理没有问题。

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

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

另外,我做了一些挖掘不同的selenium-webdriver package.json版本。也许那是相关的?

区别在于:

2.42.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.45.1(所需版本):

"engines": {
    "node": ">= 0.8.x"
  },
  "devDependencies": {
    "mocha": "~1.10.0"
  },
  "scripts": {
    "test": "node_modules/mocha/bin/mocha -R list --recursive test"
  },
  "_id": "selenium-webdriver@2.42.1",
  "dist": {
    "shasum": "61984d1583b89c80a9f3bf31623d00bcc82a8d0e",
    "tarball": "http://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-2.42.1.tgz"
  },
  "_from": "selenium-webdriver@2.42.1",
  "_npmVersion": "1.2.18",
  },
  "directories": {},
  "_shasum": "61984d1583b89c80a9f3bf31623d00bcc82a8d0e",
  "_resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-2.42.1.tgz"
}

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

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

  "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"
}

0 个答案:

没有答案