what node version manager do you use? nvm is giving me issues

122 views
Skip to first unread message

lopeo...@gmail.com

unread,
Jun 15, 2014, 7:29:26 PM6/15/14
to meteo...@googlegroups.com
nvm issues

I've tried another node version manager before (can't remember which, but it was horrible)

I'll probably return to the older version of nvm that worked and was simple one .sh file.

#meteor freenode
<imslavko> Lope: why do you even need nvm?
<imslavko> Lope: Meteor stores the correct binary of node and npm on your machine so you don't need to manage those with nvm
<dali> mysterious
<imslavko> why?
<Lope> I need nvm to install node to install npm to install meteorite to install iron-router
<imslavko> ew
<imslavko> alright, that's fair
<Lope> software development, isn't it simple? </sarcasm>
<imslavko> but you can always find the correct binaries of node and npm at .meteor/tools/latest/bin/{node,npm}
<Lope> how do you propose using them from there?
<imslavko> Lope this might be awkward, but why do you think you cannot use them from there?
<imslavko> ~/.meteor/tools/latest/bin/npm install -g meteorite
<imslavko> ~/.meteor/tools/latest/bin/node ~/.meteor/tool/latest/bin/mrt
<imslavko> ~/.meteor/tools/latest/bin/node ~/.meteor/tool/latest/bin/mrt add iron-router
<Lope> that's a bit of a pain
<Lope> I also use node for other projects
<Lope> so I might as well just install nvm
<imslavko> once Meteor folds the packaging it will drop the dependency on npm being installed and meteorite
<Lope> I've got an older version of nvm (that works simply with 1 sh file) on another computer
<imslavko> so far yeah, this is a bit of a pain

Abigail Watson

unread,
Jun 15, 2014, 11:13:34 PM6/15/14
to meteo...@googlegroups.com
nvm was a huge headache when I tried using it.  

Meteor is an opinionated framework, and deals with a lot of technologies in it's pipeline beyond vanilla Node.  And that's exactly what makes it great... it solves a bunch of the headaches of integrating all these different complex technologies, and provides really awesome functionality as a result.  But there's a cost to that integration in terms of platform flexibility.  Meteor only achieves the results it does by using specific versions of libraries.  So, using a tool like NVM becomes problematic, because NVM will move node out from underneath Meteor.

Just let meteor specify the node version.
Reply all
Reply to author
Forward
0 new messages