错误的ERR!版本未找到:i@0.3.2错误

时间:2015-09-08 16:40:54

标签: node.js

请帮忙。我有一个NPM应用程序,当我在本地下载并尝试执行" npm install"扔我 - " npm ERR!版本未找到:i@0.3.2"错误。

C:\Users\xyaz\Desktop\MS\MSWeb\WebContent>npm install
npm WARN package.json msportal@0.0.1-SNAPSHOT No description
npm WARN package.json msportal@0.0.1-SNAPSHOT No repository field.
npm WARN package.json msportal@0.0.1-SNAPSHOT No README data
npm WARN package.json msportal@0.0.1-SNAPSHOT No license field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! version not found: i@0.3.2
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\xyaz\Desktop\MS\MSWeb\WebContent\npm-debug.log

我尝试使用谷歌搜索,并找到了这个解决方案

https://github.com/pksunkara/inflect/issues/11

但我不确定如何将该解决方案应用于我的问题。 我的意思是,我没有看到对#34; i&#34;在我的package.json中的任何地方,或者我无法识别非常明显存在的东西。

这是我的package.json文件

{
  "author": "QSD",
  "name": "msportal",
  "homepage": "http://www.cqst.com",
  "version": "0.0.1-SNAPSHOT",
  "buildversion": "0.1",
  "distdirroot": "release",
  "distdirextension": "src/content",
  "engines": {
    "node": ">= 0.8.4"
  },
  "dependencies": {},
  "devDependencies": {
    "fs-extra": "^0.16.3",
    "grunt": "^0.4.5",
    "grunt-cli": "^0.1.13",
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-compress": "~0.9.1",
    "grunt-contrib-concat": "~0.4.0",
    "grunt-contrib-connect": "~0.8.0",
    "grunt-contrib-copy": "~0.4.0",
    "grunt-contrib-cssmin": "~0.4.1",
    "grunt-contrib-htmlmin": "~0.2.0",
    "grunt-contrib-jshint": "~0.10.0",
    "grunt-contrib-less": "~0.11.0",
    "grunt-contrib-uglify": "~0.5.0",
    "grunt-contrib-watch": "~0.6.1",
    "grunt-execute": "~0.2.1",
    "grunt-html2js": "~0.2.7",
    "grunt-include-source": "~0.3.5",
    "grunt-text-replace": "~0.3.11",
    "http-server": "^0.6.1",
    "json-proxy": "~0.1.2",
    "livereloadx": "^0.3.2",
    "load-grunt-tasks": "^1.0.0",
    "time-grunt": "^1.0.0",
    "underscore": "~1.6.0",
    "webserver": "~1.1.2"
  },
  "scripts": {
    "prestart": "npm install",
    "start": "http-server -a localhost -p 8000 -c-1"
  }
}

我尝试过&#34; npm install -g npm&#34;。但是,这也没有任何帮助。 关于如何解决这个问题的任何意见?

1 个答案:

答案 0 :(得分:4)

i@0.3.2未发表,所以取决于它的任何东西都需要升级到使用i@0.3.3,这几乎是在0.3.2未发布后立即发布的。

npm ls i

将向您展示它的路径(并告诉您它正在失败),以及取决于它的原因

更新:编辑package.json后使用

"json-proxy":"*"

你不应该再犯这个错误。

如果你很好奇,依赖链看起来像这样。 json-proxy取决于

 optimist/ httpp-proxy/utile/i