Upgrading angular.js version used with yeoman

1,191 views
Skip to first unread message

Nicolas Laplante

unread,
Jan 17, 2013, 11:37:55 PM1/17/13
to ang...@googlegroups.com
I initialized a new angular.js app with yeoman 0.9.6 and I noticed the angular version used is 1.0.1. Is there a way to use the latest angular version without relying on bower to install it? Using bower, I end up with angular 1.0.1 in app/scripts/vendor/angular.js and 1.0.3 in app/component. 

Also, if I install bower packages which depend on angular, could bower skip installing angular since the generator includes it automatically?

Thanks and sorry if those questions were answered before. I did a search and found nothing about it. Those are my first days with yeoman + angularjs.

Brian Bonner

unread,
Jan 27, 2013, 12:01:18 AM1/27/13
to ang...@googlegroups.com
Hi Nicolas,

I'm in the same boat as you.   I noticed that the angular generator (https://github.com/yeoman/generator-angular)  uses the correct version 1.0.4.

On my machine, the generator-angular just called angular is installed at:  /usr/local/lib/node_modules/yeoman/node_modules/yeoman-generators/lib/generators/angular   This is the version that installs the 1.0.1 angular in the /scripts/vendor directory.

I tried cloning the repo and running sudo npm -g install to install it, but it places it in the wrong node_modules directory, it loads it at: /usr/local/lib/node_modules/generator-angular

I suspect if we can figure out how to update the generator, it should give us the correct results.

Brian

Brian Bonner

unread,
Jan 27, 2013, 12:19:26 AM1/27/13
to ang...@googlegroups.com
I found this post in the yeoman-dev discussion.


It looks like it will be easier in 1.0...but it's not easy right now.   I'm still researching it.


On Thursday, January 17, 2013 11:37:55 PM UTC-5, Nicolas Laplante wrote:

Brian Bonner

unread,
Jan 27, 2013, 12:23:55 AM1/27/13
to ang...@googlegroups.com
I also found this:

https://groups.google.com/d/topic/yeoman-dev/5G9wAgtyZeg/discussion   which indicates that Yeoman will be released soon..


which is referenced here:  https://groups.google.com/d/topic/yeoman-dev/Zyr8Dv3v6O0/discussion   which discusses keeping code updated.

Nicolas Laplante

unread,
Jan 27, 2013, 10:46:40 AM1/27/13
to ang...@googlegroups.com

Nice one there. Seems like it has been addressed and it will be fixed in next release. I'm going to delete the angular from vendor/ folder and use the bower dependency instead.

Thanks!

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
 
 

Brian Bonner

unread,
Jan 27, 2013, 5:08:44 PM1/27/13
to ang...@googlegroups.com
Nicolas, yes, if you just want to install angular 1.0.4,  you can just run 'yeoman install angular' and it will install angular 1.0.4. in the components directory for you.   I plan on doing the same.
--
Brian Bonner
Reply all
Reply to author
Forward
0 new messages