安装grunt-contrib-jasmine时出错
当我尝试用这个命令安装它时:
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.4.4没有README数据
npm WARN package.json karma-phantomjs-launcher@0.4.4没有README数据
npm WARN package.json http-proxy@1.0.0没有版本库字段。
npm WARN package.json uglify-js@2.2.5'repositories'(复数)不支持。 >请select一个作为'资料库'栏位/phantomjs@1.9.17安装C:\ Users \ Garrarufa \ Documents \ WebstormWorkspace \ website \ node_modules \ grunt-contr ib-jasmine \ node_modules \ grunt-lib-phantomjs \ node_modules \ phantomjs
节点install.js
已经可以在C:\ Users \ GARRAR下载〜1 \ AppData \ Local \ Temp \ phantomjs \ phantomjs-1.9.8-windows.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-extrac t-1433927117004 \ phantomjs-1.9.8-windows – > C:\ Users \ Garrarufa \ Documents \ WebstormWorkspace \ website \ node_mod ules \ grunt-contrib-jasmine \ node_modules \ grunt-lib-phantomjs \ node_modules \ phantomjs \ lib \ phantom
编写location.js文件
完成。 在C:\ Users \ Garrarufa \ Documents \ WebstormWorkspace \ website \ node_modules \ gr unt-contrib-jasmine \ node_modules \ grunt-lib-phantomjs \ node_modules \ phantomjs \ lib \ phantom \ phantomjs.exe中提供Phantomjs二进制文件
npm ERR! Windows_NT 6.3.9600
npm ERR! argv“C:\ Program Files \ nodejs \\ node.exe”“C:\ Program Files \ nodejs \ node_modules \ npm \ bin \
npm-cli.js“”install“”grunt-contrib-jasmine“”–save-dev“
npm ERR! 节点v0.12.0
npm ERR! npm v2.5.1
npm ERR! 代码EPEERINVALID
npm ERR! peerinvalid包grunt-contrib-jasmine不满足其兄弟的peerDependencies需求!
npm ERR! peerinvalid Peer grunt-template-jasmine-requirejs@0.1.10想要grunt-contrib-jasmine@~0.5.3
npm ERR! peerinvalid Peer grunt-template-jasmine-istanbul@0.2.6 want grunt-contrib-jasmine @> = 0.3.1
npm ERR! 请包括以下任何支持请求的文件:
npm ERR! C:\用户\ Garrarufa \文档\ WebstormWorkspace \网站\ NPM-的debug.log
我该如何解决这个错误?