[英]Install npm does not work on windows
Install npm does not work on windows 安装npm不适用于Windows
Error 错误
npm ERR!
错误的ERR! Error: No compatible version found: grunt-rename@'>=0.4.1-0 <0.5.0-0'
错误:未找到兼容版本:grunt-rename @'> = 0.4.1-0 <0.5.0-0'
npm ERR!
错误的ERR! Valid install targets:
有效的安装目标:
npm ERR!
错误的ERR! ["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4"]
[ “0.1.0”, “0.1.1”, “0.1.2”, “0.1.3”, “0.1.4”]
npm ERR!
错误的ERR! at installTargetsError (C:\\Program Files (x86)\\nodejs\\node_modules\\
在installTargetsError(C:\\ Program Files(x86)\\ nodejs \\ node_modules \\
npm\\lib\\cache.js:719:10)
NPM \\ lib中\\ cache.js:719:10)
npm ERR!
错误的ERR! at next (C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\lib\\cache.j
在下一个(C:\\ Program Files(x86)\\ nodejs \\ node_modules \\ npm \\ lib \\ cache.j
s:698:17)
S:698:17)
npm ERR!
错误的ERR! at C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\lib\\cache.js:675:
在C:\\ Program Files(x86)\\ nodejs \\ node_modules \\ npm \\ lib \\ cache.js:675:
5
五
npm ERR!
错误的ERR! at saved (C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modul
保存(C:\\ Program Files(x86)\\ nodejs \\ node_modules \\ npm \\ node_modul
es\\npm-registry-client\\lib\\get.js:142:7)
ES \\ NPM-注册表的客户端\\ lib中\\ get.js:142:7)
npm ERR!
错误的ERR! at C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\grac
在C:\\ Program Files(x86)\\ nodejs \\ node_modules \\ npm \\ node_modules \\ grac
eful-fs\\polyfills.js:133:7
eful-FS \\ polyfills.js:133:7
npm ERR!
错误的ERR! at Object.oncomplete (fs.js:107:15)
在Object.oncomplete(fs.js:107:15)
npm ERR!
错误的ERR! If you need help, you may report this log at:
如果您需要帮助,可以在以下位置报告此日志:
npm ERR!
错误的ERR! http://github.com/isaacs/npm/issues
http://github.com/isaacs/npm/issues
npm ERR!
错误的ERR! or email it to:
或通过电子邮件发送至
npm ERR!
错误的ERR!
npm ERR!
错误的ERR! System Windows_NT 6.1.7601
系统Windows_NT 6.1.7601
npm ERR!
错误的ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
命令“C:\\ Program Files(x86)\\ nodejs \\\\ node.exe”“C:\\ Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
s(x86)\\ nodejs \\ node_modules \\ npm \\ bin \\ npm-cli.js“”install“
npm ERR!
错误的ERR! cwd C:\\Users\\ra824041\\Desktop\\grunt\\MyApp npm ERR!
cwd C:\\ Users \\ ra824041 \\ Desktop \\ grunt \\ MyApp npm ERR! node -v v0.10.15
节点-v v0.10.15
npm ERR!
错误的ERR! npm -v 1.3.5
npm -v 1.3.5
npm http 304 https://registry.npmjs.org/grunt-contrib-watch
npm http 304 https://registry.npmjs.org/grunt-contrib-watch
npm http 304 https://registry.npmjs.org/grunt-contrib-compress
npm http 304 https://registry.npmjs.org/grunt-contrib-compress
npm http 304 https://registry.npmjs.org/grunt-contrib-nodeunit
npm http 304 https://registry.npmjs.org/grunt-contrib-nodeunit
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http 304 https://registry.npmjs.org/grunt-stripcomments
npm http 304 https://registry.npmjs.org/grunt-stripcomments
npm http 304 https://registry.npmjs.org/grunt-usemin
npm http 304 https://registry.npmjs.org/grunt-usemin
npm http 304 https://registry.npmjs.org/grunt-contrib-concat
npm http 304 https://registry.npmjs.org/grunt-contrib-concat
npm http 304 https://registry.npmjs.org/grunt-contrib-uglify
npm http 304 https://registry.npmjs.org/grunt-contrib-uglify
npm http 304 https://registry.npmjs.org/grunt-contrib-copy
npm http 304 https://registry.npmjs.org/grunt-contrib-copy
npm http 304 https://registry.npmjs.org/grunt-minified/0.0.6
npm http 304 https://registry.npmjs.org/grunt-minified/0.0.6
npm http 304 https://registry.npmjs.org/grunt-contrib-qunit
npm http 304 https://registry.npmjs.org/grunt-contrib-qunit
npm http 304 https://registry.npmjs.org/grunt-contrib-cssmin
npm http 304 https://registry.npmjs.org/grunt-contrib-cssmin
npm ERR!
错误的ERR!
npm ERR!
错误的ERR! Additional logging details can be found in:
其他记录详细信息可在以下位置找到
npm ERR!
错误的ERR! C:\\Users\\ra824041\\Desktop\\grunt\\Greece 3.6\\npm-debug.log
C:\\ Users \\ ra824041 \\ Desktop \\ grunt \\ Greece 3.6 \\ npm-debug.log
npm ERR!
错误的ERR! not ok code 0
不好的代码0
package.json: 的package.json:
{
"name": "ML",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-rename": "~0.4.1",
"grunt-contrib-compress": "~0.5.2",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-cssmin": "~0.6.1",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt-contrib-qunit": "~0.2.2",
"grunt-contrib-uglify": "^0.6.0",
"grunt-contrib-watch": "~0.4.4",
"grunt-minified": "0.0.6",
"grunt-stripcomments": "^0.3.1",
"grunt-usemin": "~0.1.12"
}
}
This seems like an issue on the first line: 这似乎是第一行的问题:
No compatible version found: grunt-rename@'>=0.4.1-0 <0.5.0-0'
Update grunt-rename in the package.json to any of ["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4"] 将package.json中的grunt-rename更新为[“0.1.0”,“0.1.1”,“0.1.2”,“0.1.3”,“0.1.4”]中的任何一个
Be sure to try an "npm cache clean" commands too 一定要尝试“npm cache clean”命令
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.