Jhispter installation: The package karma does not

2019-06-21 02:46发布

I'm trying to generete jhipster project by yo. But when I run it, a strange error occurs: The package karma does not satisfy its siblings' peerDependencies requirements! I uninstalled the nodejs completely and installed it again, but still same error. When I search for there are some solution advices like this or this.

I have 64 bit win7, node -v v0.10.26 npm -v 1.4.3

error peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements!
error peerinvalid Peer karma-script-launcher@0.1.0 wants karma@>=0.9
error peerinvalid Peer karma-chrome-launcher@0.1.2 wants karma@>=0.9.3
error peerinvalid Peer karma-html2js-preprocessor@0.1.0 wants karma@>=0.9
error peerinvalid Peer karma-jasmine@0.1.5 wants karma@>=0.9
error peerinvalid Peer karma-requirejs@0.2.1 wants karma@>=0.9
error peerinvalid Peer karma-phantomjs-launcher@0.1.2 wants karma@>=0.9
error peerinvalid Peer grunt-karma@0.7.3 wants karma@~0.12.0
error System Windows_NT 6.1.7601
error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
error cwd C:\Users\EXT0182703\LuckyShoot
error node -v v0.10.26
error npm -v 1.4.3
error code EPEERINVALID
verbose exit [ 1, true ]

2条回答
ら.Afraid
2楼-- · 2019-06-21 03:28

I had a similar issue and I did this in terminal:

rm -rf /usr/local/lib/node_modules/karma-*

and then updated the package.json:

  "devDependencies": {
    "karma": "0.12.0",
    ...
  }

then reinstall

sudo npm install karma

It worked for me

查看更多
爷的心禁止访问
3楼-- · 2019-06-21 03:34

We released yesterday the version 0.11 that fixes this problem. Try it. http://jhipster.github.io/2014/02/19/jhipster-release-0.11.0.html

查看更多
登录 后发表回答