{"id":3085,"date":"2021-10-12T01:24:55","date_gmt":"2021-10-11T23:24:55","guid":{"rendered":"https:\/\/vielhuber.de\/?p=3085"},"modified":"2021-10-12T01:26:39","modified_gmt":"2021-10-11T23:26:39","slug":"quick-tip-automatisch-node-version-wechseln","status":"publish","type":"post","link":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/","title":{"rendered":"Quick Tip: Automatisch Node-Version wechseln"},"content":{"rendered":"\n<p>Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von <a href=\"https:\/\/github.com\/nvm-sh\/nvm\" target=\"_blank\" rel=\"noreferrer noopener\">nvm<\/a>. Will man in einem Projekt explizit die ben\u00f6tigte Node-Version vorgeben, legt man eine Datei namens <strong>.nvmrc<\/strong> mit der genauen Versionsnummer (z.B. \"12.10.0\") in denselben Ordner, in dem die <strong>package.json<\/strong> liegt. Wechselt man nun in den Ordner, f\u00fchrt folgende Erweiterung der Datei <strong>~\/.bash_profile<\/strong> f\u00fcr die Bash den Befehl <strong>nvm use<\/strong> aus, der diese Version automatisch einstellt:<\/p>\n\n\n\n<p class=\"githubgist\" data-gist-file=\".bash_profile\">fe497e1c7f9f1547263eb3bffe15f9f6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von nvm. Will man in einem Projekt explizit die ben\u00f6tigte Node-Version vorgeben, legt man eine Datei namens .nvmrc mit der genauen Versionsnummer (z.B. \"12.10.0\") in denselben Ordner, in dem die package.json liegt. Wechselt man nun in den Ordner, f\u00fchrt folgende Erweiterung der Datei ~\/.bash_profile [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"gtbabel_prevent_lngs":"","gtbabel_alt_lng":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-3085","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-blog"},"acf":[],"yoast_head":"<title>Quick Tip: Automatisch Node-Version wechseln &#060; Vielhuber David<\/title>\n<meta name=\"description\" content=\"Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von nvm. Will man in einem Projekt explizit die ben\u00f6tigte\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Quick Tip: Automatisch Node-Version wechseln &#060; Vielhuber David\" \/>\n<meta property=\"og:description\" content=\"Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von nvm. Will man in einem Projekt explizit die ben\u00f6tigte\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/\" \/>\n<meta property=\"og:site_name\" content=\"Vielhuber David\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-11T23:24:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-11T23:26:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"552\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"David\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vielhuber\" \/>\n<meta name=\"twitter:site\" content=\"@vielhuber\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"David\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/\"},\"author\":{\"name\":\"David\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\"},\"headline\":\"Quick Tip: Automatisch Node-Version wechseln\",\"datePublished\":\"2021-10-11T23:24:55+00:00\",\"dateModified\":\"2021-10-11T23:26:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/\"},\"wordCount\":87,\"publisher\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\"},\"articleSection\":[\"Blog\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/\",\"url\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/\",\"name\":\"Quick Tip: Automatisch Node-Version wechseln &#060; Vielhuber David\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#website\"},\"datePublished\":\"2021-10-11T23:24:55+00:00\",\"dateModified\":\"2021-10-11T23:26:39+00:00\",\"description\":\"Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von nvm. Will man in einem Projekt explizit die ben\u00f6tigte\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/blog\\\/quick-tip-automatisch-node-version-wechseln\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vielhuber.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quick Tip: Automatisch Node-Version wechseln\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#website\",\"url\":\"https:\\\/\\\/vielhuber.de\\\/\",\"name\":\"Vielhuber David\",\"description\":\"Full-Stack Developer\",\"publisher\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vielhuber.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/vielhuber.de\\\/#\\\/schema\\\/person\\\/64d4ff14713d413ea4d9b210d0c2c6ef\",\"name\":\"David\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\",\"url\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\",\"contentUrl\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\",\"width\":700,\"height\":552,\"caption\":\"David\"},\"logo\":{\"@id\":\"https:\\\/\\\/vielhuber.de\\\/wp-content\\\/uploads\\\/about.jpg\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/vielhuber\"]}]}<\/script>","yoast_head_json":{"title":"Quick Tip: Automatisch Node-Version wechseln &#060; Vielhuber David","description":"Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von nvm. Will man in einem Projekt explizit die ben\u00f6tigte","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/","og_locale":"de_DE","og_type":"article","og_title":"Quick Tip: Automatisch Node-Version wechseln &#060; Vielhuber David","og_description":"Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von nvm. Will man in einem Projekt explizit die ben\u00f6tigte","og_url":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/","og_site_name":"Vielhuber David","article_published_time":"2021-10-11T23:24:55+00:00","article_modified_time":"2021-10-11T23:26:39+00:00","og_image":[{"width":700,"height":552,"url":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg","type":"image\/jpeg"}],"author":"David","twitter_card":"summary_large_image","twitter_creator":"@vielhuber","twitter_site":"@vielhuber","twitter_misc":{"Verfasst von":"David","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/#article","isPartOf":{"@id":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/"},"author":{"name":"David","@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef"},"headline":"Quick Tip: Automatisch Node-Version wechseln","datePublished":"2021-10-11T23:24:55+00:00","dateModified":"2021-10-11T23:26:39+00:00","mainEntityOfPage":{"@id":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/"},"wordCount":87,"publisher":{"@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef"},"articleSection":["Blog"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/","url":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/","name":"Quick Tip: Automatisch Node-Version wechseln &#060; Vielhuber David","isPartOf":{"@id":"https:\/\/vielhuber.de\/#website"},"datePublished":"2021-10-11T23:24:55+00:00","dateModified":"2021-10-11T23:26:39+00:00","description":"Zum schnellen Installieren und Wechseln von Node-Versionen empfiehlt sich der Einsatz von nvm. Will man in einem Projekt explizit die ben\u00f6tigte","breadcrumb":{"@id":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vielhuber.de\/blog\/quick-tip-automatisch-node-version-wechseln\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vielhuber.de\/"},{"@type":"ListItem","position":2,"name":"Quick Tip: Automatisch Node-Version wechseln"}]},{"@type":"WebSite","@id":"https:\/\/vielhuber.de\/#website","url":"https:\/\/vielhuber.de\/","name":"Vielhuber David","description":"Full-Stack Developer","publisher":{"@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vielhuber.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/vielhuber.de\/#\/schema\/person\/64d4ff14713d413ea4d9b210d0c2c6ef","name":"David","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg","url":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg","contentUrl":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg","width":700,"height":552,"caption":"David"},"logo":{"@id":"https:\/\/vielhuber.de\/wp-content\/uploads\/about.jpg"},"sameAs":["https:\/\/x.com\/vielhuber"]}]}},"_links":{"self":[{"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/posts\/3085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/comments?post=3085"}],"version-history":[{"count":2,"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/posts\/3085\/revisions"}],"predecessor-version":[{"id":3089,"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/posts\/3085\/revisions\/3089"}],"wp:attachment":[{"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/media?parent=3085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/categories?post=3085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vielhuber.de\/hi\/wp-json\/wp\/v2\/tags?post=3085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}