{"id":31867,"date":"2023-01-23T15:35:45","date_gmt":"2022-11-06T07:12:23","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/"},"modified":"2024-01-15T06:58:24","modified_gmt":"2024-01-14T22:58:24","slug":"%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/","title":{"rendered":"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406"},"content":{"rendered":"<p>\u901a\u8fc7node\u516c\u5f0f\u7f51\u7ad9\u5b89\u88c5\u5f88\u7b80\u5355\u65b9\u4fbf\uff0c\u4f46\u5f53\u60f3\u5207\u6362\u7248\u672c\u65f6\u6709\u4e9b\u4e0d\u65b9\u4fbf\u3002\u50cfRuby\u7684rbenv\u4e00\u6837\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528nodebrew\u6765\u7ba1\u7406node\u7248\u672c\u3002<\/p>\n<p>\u53ea\u8981\u662f\u5728Mac\u4e0a\uff0c<br \/>\n\u56e0\u4e3a\u5b83\u5df2\u7ecf\u5728homebrew\u4e2d\u4e86\uff0c<br \/>\n\u6240\u4ee5\u53ef\u4ee5\u8f7b\u677e\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<h2>\u5b89\u88c5nodebrew\u3002<\/h2>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>brew <span class=\"nb\">install <\/span>nodebrew\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u53ef\u5b89\u88c5\u7248\u672c\u3002<\/h2>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u5b89\u88c5iojs\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>nodebrew ls-remote\r\n\u30fb\u30fb\u30fb\r\nv0.12.0   v0.12.1   v0.12.2   v0.12.3   v0.12.4   v0.12.5   v0.12.6   v0.12.7\r\nio@v1.0.0 io@v1.0.1 io@v1.0.2 io@v1.0.3 io@v1.0.4\r\n\u30fb\u30fb\u30fb\r\n<\/code><\/pre>\n<h2>\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Node\u3002<\/h2>\n<pre class=\"post-pre\"><code>$ nodebrew install stable\r\n$ nodebrew list\r\nv0.12.7\r\n<\/code><\/pre>\n<h2>\u5728.bash_profile\u4e2d\u6dfb\u52a0\u8def\u5f84\u3002<\/h2>\n<p>\u5982\u679c\u8fdb\u884c\u4e86\u8865\u5145\uff0c\u8bf7\u4f7f\u7528&#8221;source ~\/.bash_profile&#8221;\u91cd\u65b0\u52a0\u8f7d\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># nodebrew<\/span>\r\n<span class=\"nb\">export <\/span><span class=\"nv\">PATH<\/span><span class=\"o\">=<\/span><span class=\"nv\">$HOME<\/span>\/.nodebrew\/current\/bin:<span class=\"nv\">$PATH<\/span>\r\n<\/code><\/pre>\n<h2>\u7248\u672c\u5207\u6362<\/h2>\n<pre class=\"post-pre\"><code>$ nodebrew use v0.12.7\r\n<\/code><\/pre>\n<h2>\u7248\u672c\u786e\u8ba4<\/h2>\n<pre class=\"post-pre\"><code>$ node -v\r\nv0.12.7\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7node\u516c\u5f0f\u7f51\u7ad9\u5b89\u88c5\u5f88\u7b80\u5355\u65b9\u4fbf\uff0c\u4f46\u5f53\u60f3\u5207\u6362\u7248\u672c\u65f6\u6709\u4e9b\u4e0d\u65b9\u4fbf\u3002\u50cfRuby\u7684rbenv\u4e00\u6837\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528no [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-31867","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>\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406 - 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\/\u5728mac\u4e0a\u8fdb\u884cnode-js\u7248\u672c\u7ba1\u7406\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406\" \/>\n<meta property=\"og:description\" content=\"\u901a\u8fc7node\u516c\u5f0f\u7f51\u7ad9\u5b89\u88c5\u5f88\u7b80\u5355\u65b9\u4fbf\uff0c\u4f46\u5f53\u60f3\u5207\u6362\u7248\u672c\u65f6\u6709\u4e9b\u4e0d\u65b9\u4fbf\u3002\u50cfRuby\u7684rbenv\u4e00\u6837\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528no [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u8fdb\u884cnode-js\u7248\u672c\u7ba1\u7406\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-06T07:12:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-14T22:58:24+00:00\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\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%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/\",\"name\":\"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-11-06T07:12:23+00:00\",\"dateModified\":\"2024-01-14T22:58:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406\"}]},{\"@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\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406 - 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\/\u5728mac\u4e0a\u8fdb\u884cnode-js\u7248\u672c\u7ba1\u7406\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406","og_description":"\u901a\u8fc7node\u516c\u5f0f\u7f51\u7ad9\u5b89\u88c5\u5f88\u7b80\u5355\u65b9\u4fbf\uff0c\u4f46\u5f53\u60f3\u5207\u6362\u7248\u672c\u65f6\u6709\u4e9b\u4e0d\u65b9\u4fbf\u3002\u50cfRuby\u7684rbenv\u4e00\u6837\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528no [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728mac\u4e0a\u8fdb\u884cnode-js\u7248\u672c\u7ba1\u7406\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-06T07:12:23+00:00","article_modified_time":"2024-01-14T22:58:24+00:00","author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/","name":"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-11-06T07:12:23+00:00","dateModified":"2024-01-14T22:58:24+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Mac\u4e0a\u8fdb\u884cnode.js\u7248\u672c\u7ba1\u7406"}]},{"@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\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8mac%e4%b8%8a%e8%bf%9b%e8%a1%8cnode-js%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/31867","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=31867"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/31867\/revisions"}],"predecessor-version":[{"id":57164,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/31867\/revisions\/57164"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=31867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=31867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=31867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}