jvandemo / generator-angularjs-library

A generator for Yeoman to generate the boilerplate for creating an AngularJS library
117 stars 33 forks source link

Error when generating a library #14

Closed AlexCppns closed 10 years ago

AlexCppns commented 10 years ago
npm ERR! peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer karma-jasmine@0.0.3 wants karma@~0.9
npm ERR! peerinvalid Peer karma-chrome-launcher@0.0.2 wants karma@~0.9.3
npm ERR! peerinvalid Peer karma-firefox-launcher@0.1.3 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-html2js-preprocessor@0.1.0 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-requirejs@0.2.2 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-script-launcher@0.1.0 wants karma@>=0.9
npm ERR! peerinvalid Peer karma-coffee-preprocessor@0.2.1 wants karma@>=0.11.14
npm ERR! peerinvalid Peer karma-phantomjs-launcher@0.1.4 wants karma@>=0.9

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! ...
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.10
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR! ...
npm ERR! not ok code 0
sandor-nemeth commented 10 years ago

Hello,

i have just run into this usse .. I have updated a couple of dependencies in the package.json, which fixed the issue, however it seems to me that the complete library is outdated a little bit (as it generates angular 1.0.7 dependencies to the bower.json file), so on the weeked I'll attach a pull request with an actualized config. Anyway, until that, here's my package.json as of current:

"devDependencies": {
        "grunt": "~0.4.1",
        "grunt-contrib-copy": "~0.5.0",
        "grunt-contrib-concat": "~0.5.0",
        "grunt-contrib-coffee": "~0.10.1",
        "grunt-contrib-uglify": "~0.5.0",
        "grunt-contrib-compass": "~0.9.0",
        "grunt-contrib-jshint": "~0.10.0",
        "grunt-contrib-cssmin": "~0.10.0",
        "grunt-contrib-connect": "~0.8.0",
        "grunt-contrib-clean": "~0.5.0",
        "grunt-contrib-htmlmin": "~0.3.0",
        "grunt-contrib-imagemin": "~0.7.1",
        "grunt-contrib-watch": "~0.6.1",
        "grunt-usemin": "~2.3.0",
        "grunt-svgmin": "~0.4.0",
        "grunt-rev": "~0.1.0",
        "grunt-karma": "~0.8.3",
        "grunt-open": "~0.2.0",
        "grunt-concurrent": "~0.5.0",
        "matchdep": "~0.3.0",
        "connect-livereload": "~0.4.0",
        "grunt-google-cdn": "~0.4.0",
        "grunt-ngmin": "~0.0.2",
        "karma": "~0.12.17",
        "karma-jasmine": "~0.1.5",
        "karma-chrome-launcher": "~0.1.4"
    },
jvandemo commented 10 years ago

@sandor-nemeth Awesome, can you please create a PR for this so I can merge it? Thanks!

sandor-nemeth commented 10 years ago

@jvandemo yes, I'll do that this weekend, would it be fine for you if I'd update the bower.json with newer angular js dependencies (version 1.2.20)? I'd open a new issue for it, if that is fine

jvandemo commented 10 years ago

@sandor-nemeth Absolutely fine yes. Your effort is much appreciated!