Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jhispter installation: The package karma does not satisfy its siblings' peerDependencies requirements

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 [email protected] wants karma@>=0.9
error peerinvalid Peer [email protected] wants karma@>=0.9.3
error peerinvalid Peer [email protected] wants karma@>=0.9
error peerinvalid Peer [email protected] wants karma@>=0.9
error peerinvalid Peer [email protected] wants karma@>=0.9
error peerinvalid Peer [email protected] wants karma@>=0.9
error peerinvalid Peer [email protected] 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 ]
like image 719
fyelci Avatar asked Mar 12 '14 22:03

fyelci


2 Answers

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

like image 192
Yuichi Avatar answered Nov 08 '22 20:11

Yuichi


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

like image 2
Jérôme Mirc Avatar answered Nov 08 '22 20:11

Jérôme Mirc