{"id":253,"date":"2010-09-19T16:50:25","date_gmt":"2010-09-19T16:50:25","guid":{"rendered":"http:\/\/realnorth.net\/blog\/?p=253"},"modified":"2010-09-19T16:50:25","modified_gmt":"2010-09-19T16:50:25","slug":"nave-version-manager-para-node-js","status":"publish","type":"post","link":"https:\/\/realnorth.net\/blog\/nave-version-manager-para-node-js\/","title":{"rendered":"nave, version manager para node.js"},"content":{"rendered":"<p><a href=\"http:\/\/nodejs.org\" target=\"_blank\">node.js<\/a> es un proyecto en constante evoluci\u00f3n, permanentemente se liberan versiones nuevas y el manejo de las mismas puede volverse un tema molesto, para lidiar con este problema podemos usar <a href=\"http:\/\/github.com\/isaacs\/nave\" target=\"_blank\">nave<\/a>, el cual nos permite instalar, remover y seleccionar que versi\u00f3n de <a href=\"http:\/\/nodejs.org\" target=\"_blank\">node.js<\/a> usar por default, un concepto muy familiar si han utilizado <a href=\"http:\/\/rvm.beginrescueend.com\" target=\"_blank\">rvm<\/a> en ruby.<\/p>\n<p>Para instalar nave podemos usar <a href=\"http:\/\/github.com\/isaacs\/npm\" target=\"_blank\">npm<\/a><\/p>\n<pre>\n# Instalando nave y sus dependencias v\u00eda npm\nnpm install nave\n<\/pre>\n<p>A continuaci\u00f3n podr\u00e1n ver el listado de opciones de <a href=\"http:\/\/github.com\/isaacs\/nave\" target=\"_blank\">nave<\/a> y un ejemplo de lo f\u00e1cil que es cambiar entre versiones de <a href=\"http:\/\/nodejs.org\" target=\"_blank\">node.js<\/a><\/p>\n<ul>\n<li><strong>install <version><\/strong>    Install the version passed (ex: 0.1.103)<\/li>\n<li><strong>use <version><\/strong>        Enter a subshell where <version> is being used<\/li>\n<li><strong>use <ver> <program><\/strong>  Enter a subshell, and run &#8220;node <program>&#8220;, then exit<\/li>\n<li><strong>usemain <version><\/strong>    Install in \/usr\/local\/bin (ie, use as your main nodejs)<\/li>\n<li><strong>clean <version><\/strong>      Delete the source code for <version><\/li>\n<li><strong>uninstall <version><\/strong>  Delete the install for <version><\/li>\n<li><strong>ls<\/strong>                   List versions currently installed<\/li>\n<li><strong>ls-remote<\/strong>            List remote node versions<\/li>\n<li><strong>ls-all<\/strong>               List remote and local node versions<\/li>\n<li><strong>latest<\/strong>               Show the most recent dist version<\/li>\n<li><strong>help<\/strong>                 Output help information<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/realnorth.net\/blog\/wp-content\/uploads\/2010\/09\/paulo@kendra-_003.png\" alt=\"set default node.js version using nave\" title=\"set default node.js version using nave\"  \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>node.js es un proyecto en constante evoluci\u00f3n, permanentemente se liberan versiones nuevas y el manejo de las mismas puede volverse un tema molesto, para lidiar con este problema podemos usar nave, el cual nos permite instalar, remover y seleccionar que versi\u00f3n de node.js usar por default, un concepto muy familiar si han utilizado rvm en [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[33],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-development","tag-node-js"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":0,"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"wp:attachment":[{"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/realnorth.net\/blog\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}