{"id":1134,"date":"2021-01-03T04:28:26","date_gmt":"2021-01-03T04:28:26","guid":{"rendered":"http:\/\/feellikelearning.com\/?p=1134"},"modified":"2021-01-03T04:29:25","modified_gmt":"2021-01-03T04:29:25","slug":"cn-how-to-install-nodejs-and-npm-on-macos","status":"publish","type":"post","link":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/","title":{"rendered":"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm?"},"content":{"rendered":"\n<h2>\u4e0b\u8f7d\u5e76\u5b89\u88c5<\/h2>\n\n\n\n<p><a href=\"https:\/\/nodejs.org\/en\/\">Node\u5b98\u7f51<\/a>\u4e0b\u8f7d\u5b89\u88c5\u5305(pkg\u6587\u4ef6)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1168\" height=\"294\" src=\"http:\/\/feellikelearning.com\/wp-content\/uploads\/2021\/01\/image-3.png\" alt=\"\" class=\"wp-image-1135\"\/><\/figure>\n\n\n\n<p>\u6b63\u5e38\u53cc\u51fb\u5b89\u88c5\u4e0b\u8f7d\u4e0b\u6765\u7684pkg\u6587\u4ef6, \u6700\u540e\u4e00\u6b65\u8fd8\u4f1a\u544a\u8bc9\u4f60\u88c5\u54ea\u4e86. \u53ef\u89c1node\u548cnpm\u90fd\u653e\u5728<code>\/user\/local\/bin<\/code>\u91cc\u4e86.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1230\" height=\"866\" src=\"http:\/\/feellikelearning.com\/wp-content\/uploads\/2021\/01\/image-4.png\" alt=\"\" class=\"wp-image-1136\"\/><\/figure>\n\n\n\n<h2>\u786e\u8ba4\u5b89\u88c5\u6210\u529f<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>% node -v\nv15.5.0\n% npm -v\n7.3.0<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8f7d\u5e76\u5b89\u88c5 Node\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305(pkg\u6587\u4ef6) \u6b63\u5e38\u53cc\u51fb\u5b89\u88c5\u4e0b\u8f7d\u4e0b\u6765\u7684pkg\u6587\u4ef6, \u6700\u540e\u4e00\u6b65\u8fd8\u4f1a\u544a\u8bc9\u4f60\u88c5\u54ea\u4e86. \u53ef\u89c1node\u548cnpm\u90fd\u653e\u5728\/user\/local\/bin\u91cc\u4e86. \u786e\u8ba4\u5b89\u88c5\u6210\u529f<\/p>\n","protected":false},"author":1,"featured_media":1140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[24,25,3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm? | Feel Like Learning<\/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:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm? | Feel Like Learning\" \/>\n<meta property=\"og:description\" content=\"\u4e0b\u8f7d\u5e76\u5b89\u88c5 Node\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305(pkg\u6587\u4ef6) \u6b63\u5e38\u53cc\u51fb\u5b89\u88c5\u4e0b\u8f7d\u4e0b\u6765\u7684pkg\u6587\u4ef6, \u6700\u540e\u4e00\u6b65\u8fd8\u4f1a\u544a\u8bc9\u4f60\u88c5\u54ea\u4e86. \u53ef\u89c1node\u548cnpm\u90fd\u653e\u5728\/user\/local\/bin\u91cc\u4e86. \u786e\u8ba4\u5b89\u88c5\u6210\u529f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant\" \/>\n<meta property=\"og:site_name\" content=\"Feel Like Learning\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-03T04:28:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-03T04:29:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/feellikelearning.com\/wp-content\/uploads\/2021\/01\/blog-covers.036.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"feellikelearning\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"feellikelearning\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#article\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant\"},\"author\":{\"name\":\"feellikelearning\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"headline\":\"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm?\",\"datePublished\":\"2021-01-03T04:28:26+00:00\",\"dateModified\":\"2021-01-03T04:29:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant\"},\"wordCount\":10,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"articleSection\":[\"javascript\",\"node.js\",\"\u7f16\u7a0b\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant\",\"url\":\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant\",\"name\":\"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm? | Feel Like Learning\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/#website\"},\"datePublished\":\"2021-01-03T04:28:26+00:00\",\"dateModified\":\"2021-01-03T04:29:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/feellikelearning.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/feellikelearning.com\/#website\",\"url\":\"https:\/\/feellikelearning.com\/\",\"name\":\"Feel Like Learning\",\"description\":\"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230\",\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/feellikelearning.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\",\"name\":\"feellikelearning\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"caption\":\"feellikelearning\"},\"logo\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm? | Feel Like Learning","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:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant","og_locale":"en_US","og_type":"article","og_title":"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm? | Feel Like Learning","og_description":"\u4e0b\u8f7d\u5e76\u5b89\u88c5 Node\u5b98\u7f51\u4e0b\u8f7d\u5b89\u88c5\u5305(pkg\u6587\u4ef6) \u6b63\u5e38\u53cc\u51fb\u5b89\u88c5\u4e0b\u8f7d\u4e0b\u6765\u7684pkg\u6587\u4ef6, \u6700\u540e\u4e00\u6b65\u8fd8\u4f1a\u544a\u8bc9\u4f60\u88c5\u54ea\u4e86. \u53ef\u89c1node\u548cnpm\u90fd\u653e\u5728\/user\/local\/bin\u91cc\u4e86. \u786e\u8ba4\u5b89\u88c5\u6210\u529f","og_url":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant","og_site_name":"Feel Like Learning","article_published_time":"2021-01-03T04:28:26+00:00","article_modified_time":"2021-01-03T04:29:25+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/feellikelearning.com\/wp-content\/uploads\/2021\/01\/blog-covers.036.jpeg","type":"image\/jpeg"}],"author":"feellikelearning","twitter_card":"summary_large_image","twitter_misc":{"Written by":"feellikelearning"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#article","isPartOf":{"@id":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant"},"author":{"name":"feellikelearning","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"headline":"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm?","datePublished":"2021-01-03T04:28:26+00:00","dateModified":"2021-01-03T04:29:25+00:00","mainEntityOfPage":{"@id":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant"},"wordCount":10,"commentCount":0,"publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"articleSection":["javascript","node.js","\u7f16\u7a0b"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#respond"]}]},{"@type":"WebPage","@id":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant","url":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant","name":"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm? | Feel Like Learning","isPartOf":{"@id":"https:\/\/feellikelearning.com\/#website"},"datePublished":"2021-01-03T04:28:26+00:00","dateModified":"2021-01-03T04:29:25+00:00","breadcrumb":{"@id":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/feellikelearning.com\/index.php\/2021\/01\/03\/cn-how-to-install-nodejs-and-npm-on-macos\/?variant=zh-hant#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/feellikelearning.com\/"},{"@type":"ListItem","position":2,"name":"\u600e\u6837\u5728Mac OS\u5b89\u88c5Node.js\u548cNpm?"}]},{"@type":"WebSite","@id":"https:\/\/feellikelearning.com\/#website","url":"https:\/\/feellikelearning.com\/","name":"Feel Like Learning","description":"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230","publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/feellikelearning.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a","name":"feellikelearning","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","caption":"feellikelearning"},"logo":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/"},"url":"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/"}]}},"_links":{"self":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/1134"}],"collection":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/comments?post=1134"}],"version-history":[{"count":4,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/1134\/revisions"}],"predecessor-version":[{"id":1141,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/1134\/revisions\/1141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/media\/1140"}],"wp:attachment":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/media?parent=1134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/categories?post=1134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/tags?post=1134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}