{"id":32248,"date":"2023-03-19T19:05:56","date_gmt":"2022-08-04T22:16:39","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/"},"modified":"2024-01-15T07:12:05","modified_gmt":"2024-01-14T23:12:05","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/","title":{"rendered":"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js"},"content":{"rendered":"<p>\u5728Ubuntu 22.04LTS\u4e2d\uff0c<\/p>\n<pre class=\"post-pre\"><code>curl -sL https:\/\/deb.nodesource.com\/setup_16.x | sudo -E bash -\r\nsudo apt-get install -y nodejs\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u76ee\u524d\u53ea\u652f\u6301\u523012\u7248\u672c\uff0c\u56e0\u6b64\u8bf7\u5347\u7ea7\u81f316\u7248\u672c\u6216\u6700\u65b0\u7248\u672c\u7684\u65b9\u6cd5\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo npm install -g n\r\n<\/code><\/pre>\n<p>Node.js\u7684\u6700\u65b0\u7248\u672c\u7684\u547d\u4ee4<\/p>\n<pre class=\"post-pre\"><code>sudo n latest\r\n<\/code><\/pre>\n<p>\u5b89\u88c5\u6700\u65b0\u7684LTS\u7248\u672c\u7684Node.js\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo n lts\r\n<\/code><\/pre>\n<p>\u5982\u4f55\u786e\u8ba4\u5f53\u524dnode\u7684\u7248\u672c<\/p>\n<pre class=\"post-pre\"><code>node -v\r\n<\/code><\/pre>\n<p>\u73fe\u5728\u67e5\u8a62npm\u7684\u65b9\u6cd5\u662f\u4ec0\u9ebc\uff1f<\/p>\n<pre class=\"post-pre\"><code>npm -v\r\n<\/code><\/pre>\n<p>\u6211\u8ba4\u4e3a\u6700\u65b0\u7684Node\u548cNPM\u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Ubuntu 22.04LTS\u4e2d\uff0c curl -sL https:\/\/deb.nodesource.com\/ [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32248","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728-ubuntu-22-04lts-\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684node-js\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js\" \/>\n<meta property=\"og:description\" content=\"\u5728Ubuntu 22.04LTS\u4e2d\uff0c curl -sL https:\/\/deb.nodesource.com\/ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728-ubuntu-22-04lts-\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684node-js\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-04T22:16:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-14T23:12:05+00:00\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/\",\"name\":\"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-08-04T22:16:39+00:00\",\"dateModified\":\"2024-01-14T23:12:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728-ubuntu-22-04lts-\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684node-js\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js","og_description":"\u5728Ubuntu 22.04LTS\u4e2d\uff0c curl -sL https:\/\/deb.nodesource.com\/ [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728-ubuntu-22-04lts-\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684node-js\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-08-04T22:16:39+00:00","article_modified_time":"2024-01-14T23:12:05+00:00","author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/","name":"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-08-04T22:16:39+00:00","dateModified":"2024-01-14T23:12:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728 Ubuntu 22.04LTS \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u7684Node.js"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8-ubuntu-22-04lts-%e4%b8%8a%e5%ae%89%e8%a3%85%e6%9c%80%e6%96%b0%e7%89%88%e7%9a%84node-js%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32248"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32248\/revisions"}],"predecessor-version":[{"id":57256,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32248\/revisions\/57256"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}