94
boedi
8y

brew install node
npm install bower
bower install jquery

Comments
  • 2
    You could just install jQuery from npm and bypass bower
  • 1
    @jonnyserra Not if you want it for the frontend
  • 3
    Use webpack and yarn :P
  • 2
    Or you know like @Artemix said just use the CDN that millions of users already have cached in their browsers....
  • 7
    Or just don't use jQuery
  • 1
    npm install -g npm
    is magic
  • 0
    @envolt totally! Black magic!
  • 1
    Oh god JavaScript framework wars.
  • 1
    @Paralax where have you been? npm works fine for frontend nowadays. I think bower is actually dying
  • 0
    @ismaelga Ofc it works, but is it good practice?
  • 0
    Has anyone tried yarn?
  • 0
    @Paralax yes it is. New versions of npm does flat dependencies (the reason to use bower in the past). I'm not sure but if you check some bootstrap/starter-kit repos for React you see npm is used and not bower. Probably the same for angular ones
  • 0
    @easy I played with it a bit. I think there are still some bugs in place and missing features like local dependencies or git dependencies. Highly recommend it, when those things are sorted out
Add Comment