<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Il 17/04/2015 18:43, Daniel Friesen ha scritto:<br>
    <blockquote cite="mid:55313840.7080304@nadir-seen-fire.com"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      On 2015-04-17 8:16 AM, Ricordisamoa wrote:<br>
      <blockquote cite="mid:553123B0.2000709@openmailbox.org"
        type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        Il 16/04/2015 21:50, Yuvi Panda ha scritto:<br>
        <blockquote
cite="mid:CAFw=yShfRoqj676-1phhrKoa7VjkBT_6HOybKDV_r5_SyyqrSQ@mail.gmail.com"
          type="cite">
          <div dir="ltr"><br>
            <br>
            <div class="gmail_quote">On Thu, 16 Apr 2015 at 11:32
              Ricordisamoa <<a moz-do-not-send="true"
                href="mailto:ricordisamoa@openmailbox.org">ricordisamoa@openmailbox.org</a>>


              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
                nvm: command not found :(<br>
                <br>
              </blockquote>
              <div><br>
              </div>
              <div>It allows per-user node installs. See <a
                  moz-do-not-send="true"
                  href="https://github.com/creationix/nvm">https://github.com/creationix/nvm</a>.
                Shouldn't require root, and you can set it up just for
                your tool. Easy way to experiment :) </div>
            </div>
          </div>
          <br>
        </blockquote>
        <br>
        By no means :(<br>
        <br>
        <tt>tools.jshint@tools-bastion-01:~$ nvm --version</tt><tt><br>
        </tt><tt>0.24.1</tt><tt><br>
        </tt><tt>tools.jshint@tools-bastion-01:~$ node --version</tt><tt><br>
        </tt><tt>v0.12.2</tt><br>
        <br>
        And yet: <a moz-do-not-send="true"
          href="https://tools.wmflabs.org/jshint/">https://tools.wmflabs.org/jshint/</a><br>
      </blockquote>
      nvm's version has nothing to do with the node version, nvm
      installs various node installs.<br>
      <br>
      Also it works like rvm if you've ever used it. nvm installs
      releases in it's own folder and when you `nvm use ???` it changes
      your environment so that nvm's node, etc... are on your PATH,
      etc... instead of the system node.<br>
      <br>
      So it doesn't replace the system node and your env is not the env
      that daemons execute in (if nvm did, your testing would have
      caused trouble for other tools users by replacing node for their
      tools).<br>
      <br>
      To get the daemon to use a different node version something will
      need to be changed in the spawning of the daemon to invoke some
      nvm commands to change what node is used to run the tool.<br>
      <br>
      <pre class="moz-signature" cols="72">~Daniel Friesen (Dantman, Nadir-Seen-Fire) [<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://danielfriesen.name/">http://danielfriesen.name/</a>]</pre>
    </blockquote>
    <br>
    It works by putting<br>
    <br>
    <tt>"scripts": {</tt><tt><br>
    </tt><tt>    "start": "~/.nvm/versions/node/v0.12.2/bin/node
      server.js"</tt><tt><br>
    </tt><tt>}</tt><br>
    <br>
    in <tt>~/www/js/package.json</tt>. It looks a bit hackish though...<br>
    and <tt>nvm </tt>does not work in "start".<br>
  </body>
</html>