{"id":6134,"date":"2016-11-21T19:27:23","date_gmt":"2016-11-21T11:27:23","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=6134"},"modified":"2016-11-21T19:28:39","modified_gmt":"2016-11-21T11:28:39","slug":"%e5%ae%89%e8%a3%85node-js%e7%9a%84%e6%ad%a3%e7%a1%ae%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/6134.html","title":{"rendered":"\u5b89\u88c5Node.js\u7684\u6b63\u786e\u65b9\u6cd5"},"content":{"rendered":"<p>\u76ee\u524d\u6700\u7a33\u59a5\u7684\u5b89\u88c5Node.js\u65b9\u6cd5\uff0c\u56e0\u4e3anode\u7248\u672c\u592a\u591a\u4e86\uff0c\u5f88\u5bb9\u6613\u51fa\u73b0\u4e0d\u517c\u5bb9\u7684\u5404\u79cd\u60c5\u51b5\u3002<\/p>\n<p>\u5b89\u88c5 nvm<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ curl -o- https:\/\/raw.githubusercontent.com\/creationix\/nvm\/v0.32.0\/install.sh | bash\r\n<\/pre>\n<p>\u5b89\u88c5\u540e\uff0c\u901a\u8fc7 nvm \u547d\u4ee4\u6765\u7ba1\u7406 node \u7684\u7248\u672c\uff1a<\/p>\n<p>\u67e5\u770b\u5f53\u524d\u5b89\u88c5\u7684\u7248\u672c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ nvm list\r\n<\/pre>\n<p>\u67e5\u770b\u8fdc\u7a0b\u4e91\u7aef\u5b58\u5728\u7684\u6240\u6709\u7248\u672c\u53f7<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ nvm ls-remote\r\n<\/pre>\n<p>\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u53f7\u7684node<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ nvm install 6.9.1\r\n<\/pre>\n<p>\u5c06\u4e00\u4e2a\u7248\u672c\u6307\u5b9a\u4e3a\u9ed8\u8ba4\u7248\u672c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ nvm use 6.9.1\r\n$ nvm alias default 6.9.1\r\n<\/pre>\n<p>\u68c0\u67e5\u5f53\u524dnode\u7248\u672c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ node -v\r\n<\/pre>\n<p>\u5b89\u88c5\u6700\u65b0\u7684npm<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ npm install -g npm\r\n<\/pre>\n<p>\u6c47\u603b<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ nvm list\r\n$ nvm ls-remote\r\n$ nvm install 6.9.1\r\n$ nvm use 6.9.1\r\n$ nvm alias default 6.9.1\r\n$ node -v\r\n$ npm install -g npm\r\n$ npm -v\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u524d\u6700\u7a33\u59a5\u7684\u5b89\u88c5Node.js\u65b9\u6cd5\uff0c\u56e0\u4e3anode\u7248\u672c\u592a\u591a\u4e86\uff0c\u5f88\u5bb9\u6613\u51fa\u73b0\u4e0d\u517c\u5bb9\u7684\u5404\u79cd\u60c5\u51b5\u3002 \u5b89\u88c5 nvm $ c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-6134","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=6134"}],"version-history":[{"count":2,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6134\/revisions"}],"predecessor-version":[{"id":6136,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6134\/revisions\/6136"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=6134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=6134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=6134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}