2

当我尝试使用此命令安装它时:

npm install grunt-contrib-jasmine --save-dev

...我收到一个错误:

npm WARN package.json grunt-contrib-connect@0.3.0 没有 README 数据

npm WARN package.json karma-chrome-launcher@0.1.7 没有 README 数据

npm WARN package.json karma-firefox-launcher@0.1.4 没有 README 数据

npm WARN package.json karma-phantomjs-launcher@0.1.4 没有 README 数据

npm WARN package.json http-proxy@1.0.0 没有存储库字段。

npm WARN package.json uglify-js@2.2.5 'repositories'(复数)不支持。> 请选择一个作为“存储库”字段/phantomjs@1.9.17 install C:\Users\Garrarufa\Documents\WebstormWorkspace\website\node_modules\grunt-contr ib-jasmine\node_modules\grunt-lib-phantomjs\node_modules\phantomjs

节点安装.js

已在 C:\Users\GARRAR~1\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip 下载可用

提取 zip 内容

删除 > C:\Users\Garrarufa\Documents\WebstormWorkspace\website\node_modules\grunt-contrib-jasmine\node_mo dules\grunt-lib-phantomjs\node_modules\phantomjs\lib\phantom

复制提取的文件夹 C:\Users\GARRAR~1\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip-extract t-1433927117004\phantomjs-1.9.8-windows -> C:\Users\Garrarufa \Documents\WebstormWorkspace\website\node_modules\grunt-contrib-jasmine\node_modules\grunt-lib-phantomjs\node_modules\phantomjs\lib\phantom

编写 location.js 文件

完毕。Phantomjs 二进制文件位于 C:\Users\Garrarufa\Documents\WebstormWorkspace\website\node_modules\gr unt-contrib-jasmine\node_modules\grunt-lib-phantomjs\node_modules\phantomjs\lib\phantom\phantomjs.exe

npm 错误!Windows_NT 6.3.9600

npm 错误!argv "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\

npm-cli.js" "安装" "grunt-contrib-jasmine" "--save-dev"

npm 错误!节点 v0.12.0

npm 错误!npm v2.5.1

npm 错误!代码 EPEERINVALID

npm 错误!peerinvalid 包 grunt-contrib-jasmine 不满足其兄弟的 peerDependencies 要求!

npm 错误!peerinvalid Peer grunt-template-jasmine-requirejs@0.1.10 想要 grunt-contrib-jasmine@~0.5.3

npm 错误!peerinvalid Peer grunt-template-jasmine-istanbul@0.2.6 想要 grunt-contrib-jasmine@>=0.3.1

npm 错误!请在任何支持请求中包含以下文件:

npm 错误!C:\Users\Garrarufa\Documents\WebstormWorkspace\website\npm-debug.log

我该如何解决这个错误?

4

0 回答 0