When i install karma-jasmine on mac,it gives me errors: ├── UNMET PEER DEPENDENCY jasmine-core@* └── karma-jasmine@0.3.8 npm WARN karma-jasmine@0.3.8 requires a peer of jasmine-core@* but none was installed.
But,i have installed jasmine-core just before. npm install jasmine-core -g /Users/hbowang/.nvm/versions/node/v5.9.0/lib └── jasmine-core@2.4.1
Any body can help me resolve this error?
I also got this error, but my package.json file is also missing so by creating package json file i am able to install jasmine-core and karma-jasmine.
For creating package.json file:
$ npm init
then after install jasmine-core:
$ npm install jasmine-core
$ npm install karma --save-dev
$ npm install karma-jasmine --save-dev
Hope it will help!!
you are installing jasmine-core with the global flag. try installing it without the -g option and then retry.
notice the words UNMET PEER DEPENDENCY which suggests it wants it installed at the same level not globally maybe?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.