gpt4 book ai didi

node.js - 错误!找不到版本 : i@0. 3.2 错误

转载 作者:搜寻专家 更新时间:2023-11-01 00:31:22 26 4
gpt4 key购买 nike

请帮忙。我有一个 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

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

这是我的 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"
}
}

我尝试执行“npm install -g npm”。但是,这也无济于事。关于如何解决这个问题的任何意见?

最佳答案

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

关于node.js - 错误!找不到版本 : i@0. 3.2 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32463020/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com