These are chat archives for creationix/nvm

21st
Dec 2017
William Hetherington
@willwh
Dec 21 2017 19:02
hi guys, I have the strangest problem, really perplexed; I'm using something like the following to attempt to check if the current node version is set to what I have in an ansible playbook.....
i.e. this should exit code 0; nvm ls | grep -e 'default -> v8.9.3'
('cause I have v8.9.3 set as the default right now)
āžœ nvm ls                           
         v8.9.3
default -> v8.9.3
node -> stable (-> v8.9.3) (default)
stable -> 8.9 (-> v8.9.3) (default)
iojs -> N/A (default)
lts/* -> lts/carbon (-> v8.9.3)
lts/argon -> v4.8.7 (-> N/A)
lts/boron -> v6.12.2 (-> N/A)
lts/carbon -> v8.9.3
anyone have any ideas? I really want this role to be idempotent, and need to figure this, if anyone has any ideas, I'd love to hear 'em ;)
Jordan Harband
@ljharb
Dec 21 2017 19:07
@willwh nvm alias default will print it out directly
@willwh however i think the issue might be that terminal colors are messing it up. try TERM=dumb nvm alias default
(that shuts off the colors)
William Hetherington
@willwh
Dec 21 2017 19:09
welp, that's pretty awful
thank you so much for the help @ljharb :)
that sorted me right out!
that should probably make it in the Readme.md want a PR?
;)
Jordan Harband
@ljharb
Dec 21 2017 19:11
sure, you mean like a general section about terminal colors?
also that nvm alias x prints out what "x" is :-)
nvm --help should also probably say those things if it doesn't already
@willwh a PR would be great :-)
William Hetherington
@willwh
Dec 21 2017 19:13
@ljharb groovy, am at work right now, with deadlines, I promise I will crank something out over the weekend though
:)
Jordan Harband
@ljharb
Dec 21 2017 19:14
sounds great
William Hetherington
@willwh
Dec 21 2017 19:21
thanks so much, again! :)
I made myself a reminder ;) creationix/nvm#1693