Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package can't be found on Bower #30

Open
drawcard opened this issue Jul 31, 2015 · 2 comments
Open

Package can't be found on Bower #30

drawcard opened this issue Jul 31, 2015 · 2 comments

Comments

@drawcard
Copy link

Hi, it looks like this project can't be found on bower:

$ bower install jPushMenu

bower jPushMenu#*               cached https://github.com/takien/jPushMenu/archive/master.zip#e-tag:1e960b77f
bower jPushMenu#*             validate e-tag:1e960b77f against https://github.com/takien/jPushMenu/archive/master.zip#*
bower                        ENOTFOUND Package jPushMenu not found
@drawcard
Copy link
Author

It also seems there's some errors in bower.json that are reported, when attempting to retrieve this project in another manner:

$ bower install https://github.com/takien/jPushMenu.git                          

bower jPushMenu#*           not-cached https://github.com/takien/jPushMenu.git#*
bower jPushMenu#*              resolve https://github.com/takien/jPushMenu.git#*
bower jPushMenu#*             checkout 1.1.1
bower jPushMenu#*         invalid-meta jPushMenu is missing "main" entry in bower.json
bower jPushMenu#*         invalid-meta jPushMenu is missing "ignore" entry in bower.json
bower jPushMenu#*             resolved https://github.com/takien/jPushMenu.git#1.1.1
bower jPushMenu#~1.1.1         install jPushMenu#1.1.1

@drawcard
Copy link
Author

drawcard commented Aug 3, 2015

My workaround for now is to manually pull in the jPushMenu main files like so:

bower install --save takien/jPushMenu 

then editing assets/manifest.json (for Roots Sage theme):

{
  "dependencies": {
    "main.js": {
      "files": [
        "scripts/main.js",
        "../bower_components/jPushMenu/js/jPushMenu.js"
      ],
      "main": true
    },
    "main.css": {
      "files": [
        "styles/main.scss",
        "../bower_components/jPushMenu/css/jPushMenu.css"
      ],
      "main": true
    },
    "editor-style.css": {
      "files": [
        "styles/editor-style.scss"
      ]
    },
    "jquery.js": {
      "bower": ["jquery"]
    },
    "modernizr.js": {
      "bower": ["modernizr"]
    }
  },
  "config": {
    "devUrl": "local.dev"
  }
}

Not a fantastic solution but it will do until a bugfix is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant