从Gradle运行时,安装Grunt失败

时间:2016-11-14 11:59:01

标签: javascript angularjs node.js gradle gruntjs

我有一个Gradle任务列表,它将执行npminstall和grunt_clean,grunt_build任务等。我没有外部可用的npm命令提示符来运行任何npm命令。需要仅通过Gradle任务运行。

我们安装了节点“V.0.12.7”的内部存储库。因此,在运行“ npm-install ”时遇到以下问题。

> npm ERR! node v0.12.7 npm ERR! npm  v2.11.3 npm ERR! code EPEERINVALID
> 
> npm ERR! peerinvalid The package grunt does not satisfy its siblings'
> peerDependencies requirements! npm ERR! peerinvalid Peer
> jit-grunt@0.9.1 wants grunt@~0.4.0 npm ERR! peerinvalid Peer
> grunt-contrib-clean@0.6.0 wants grunt@~0.4.0 npm ERR! peerinvalid Peer
> grunt-karma@0.11.2 wants grunt@0.4.x npm ERR! peerinvalid Peer
> grunt-newer@1.1.1 wants grunt@~0.4.1 npm ERR! peerinvalid Peer
> grunt-ng-constant@1.1.0 wants grunt@~0.4.1 npm ERR! peerinvalid Peer
> grunt-connect-proxy@0.2.0 wants grunt@~0.4.1 npm ERR! peerinvalid Peer
> grunt-autoprefixer@3.0.3 wants grunt@~0.4.2 npm ERR! peerinvalid Peer
> grunt-contrib-concat@0.5.1 wants grunt@>=0.4.0 npm ERR! peerinvalid
> Peer grunt-contrib-copy@0.8.0 wants grunt@>=0.4.0 npm ERR! peerinvalid
> Peer grunt-filerev@2.3.1 wants grunt@>=0.4.0 npm ERR! peerinvalid Peer
> grunt-usemin@3.0.0 wants grunt@>=0.4.0 npm ERR! peerinvalid Peer
> grunt-contrib-watch@0.6.1 wants grunt@~0.4.0 npm ERR! peerinvalid Peer
> grunt-ng-annotate@1.0.1 wants grunt@~0.4.5 npm ERR! peerinvalid Peer
> grunt-contrib-connect@0.10.1 wants grunt@>=0.4.0

在运行“安装Grunt”任务时,收到以下错误。

  "private": true,
  "devDependencies": {
    "grunt": "0.4.x",
    "grunt-angular-templates": "0.5.7",
    "grunt-autoprefixer": "3.0.3",
    "grunt-concurrent": "2.0.0",
    "grunt-connect-proxy": "0.2.0",
    "grunt-contrib-clean": "0.6.0",
    "grunt-contrib-concat": "0.5.1",
    "grunt-contrib-connect": "0.10.1",
    "grunt-contrib-copy": "0.8.0",
    "grunt-contrib-cssmin": "0.12.3",
    "grunt-contrib-htmlmin": "0.4.0",
    "grunt-contrib-jshint": "0.11.2",
    "grunt-contrib-less": "1.0.1",
    "grunt-contrib-uglify": "0.9.1",
    "grunt-contrib-watch": "0.6.1",
    "grunt-filerev": "2.3.1",
    "grunt-jscpd": "0.0.11",
    "grunt-karma": "0.11.2",
    "grunt-modernizr": "0.6.0",
    "grunt-multi":"0.0.6",
    "grunt-newer": "1.1.1",
    "grunt-ng-annotate": "1.0.1",
    "grunt-ng-constant": "1.1.0",
    "grunt-text-replace": "0.4.0",
    "grunt-usemin": "3.0.0",
    "grunt-wiredep": "2.0.0" ....

请找到我的“package.Json”

th:nth-of-type(4), td:nth-of-type(4){
    border:none;
}

如果没有“ installGrunt ”,Grunt Build将失败,因此在运行“ npminstall ”时,grunt版本为“0.4.5”,但在运行“install Grunt”时“grunt版本正在更新为”1.0.1“

尝试删除node_modules,缓存等,但没有任何效果,不要以为我也可以更新节点。

非常感谢任何小帮助。提前谢谢。

0 个答案:

没有答案