首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装npm不适用于windows。

安装npm不适用于windows。
EN

Stack Overflow用户
提问于 2014-10-24 07:34:52
回答 1查看 1.1K关注 0票数 1

安装npm不适用于windows。

误差

npm错误!错误:未找到兼容版本: grunt-rename@'>=0.4.1-0 <0.5.0-0‘ npm错误!有效安装目标: npm错误!"0.1.0“、"0.1.1”、"0.1.2“、"0.1.3”、"0.1.4“ npm错误!在installTargetsError (C:\Program (x86)\nodejs\node_modules\ ) npm\lib\cache.js:719:10) npm错误!下一步(C:\Program (x86)\nodejs\node_modules\npm\lib\cache.j ) s:698:17) npm错误!在C:\Program (x86)\nodejs\node_modules\npm\lib\cache.js:675: 5 npm错误!保存(C:\Program (x86)\nodejs\node_modules\npm\node_modul ) es\npm-注册表-client\lib\get.js:142:7) npm错误!在C:\Program (x86)\nodejs\node_modules\npm\node_modules\grac 133 fs\polyengus.js:133:7 npm错误!在Object.oncomplete (fs.js:107:15) npm错误!如果需要帮助,可以在以下站点报告此日志: npm错误!http://github.com/isaacs/npm/issues npm错误!或者用电子邮件发送给: npm错误!npm错误!系统Windows_NT 6.1.7601 npm错误!命令"C:\Program (x86)\nodejs\node.exe“"C:\Program” S(X86)\nodejs\node模块\npm\bin\npm-cli.js“安装” npm错误!cwd C:\Users\ra824041\Desktop\grunt\MyApp npm错误!节点-v v0.10.15 npm错误!npm -v 1.3.5 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-nodeunit 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-usemin 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-copy 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-cssmin npm错误! npm错误!其他日志记录详细信息可在以下文件中找到: npm错误!C:\Users\ra824041\Desktop\grunt\希腊3.6\npm-调试器 npm错误!不确定代码0

package.json:

代码语言:javascript
复制
{
  "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"
  }
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-24 17:48:50

这似乎是第一行的一个问题:

代码语言:javascript
复制
No compatible version found: grunt-rename@'>=0.4.1-0 <0.5.0-0'

将package.json中的grunt重命名为"0.1.0“、"0.1.1”、"0.1.2“、"0.1.3”、"0.1.4“

也一定要尝试使用"npm缓存清理“命令。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26543423

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档