{"id":32306,"date":"2023-06-27T16:31:57","date_gmt":"2022-10-03T18:34:18","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/"},"modified":"2024-01-15T07:14:38","modified_gmt":"2024-01-14T23:14:38","slug":"npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/","title":{"rendered":"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55"},"content":{"rendered":"<h1>\u4ece\u516c\u5f0f\u4e0b\u8f7d\u6587\u4ef6\u3002<\/h1>\n<p>https:\/\/nodejs.org\/ja\/ &#8211; \u8bf7\u8bbf\u95ee\u8fd9\u4e2a\u94fe\u63a5<br \/>\nhttps:\/\/nodejs.org\/ja\/download\/ &#8211; \u5728\u8fd9\u4e2a\u94fe\u63a5\u4e0a\u8fdb\u884c\u4e0b\u8f7d<\/p>\n<h2>\u7528wget\u4e0b\u8f7d<\/h2>\n<pre class=\"post-pre\"><code>wget https:\/\/nodejs.org\/dist\/v7.2.0\/node-v7.2.0-linux-x64.tar.xz\r\n<\/code><\/pre>\n<p>\u5982\u679c\u8981\u57282016\u5e7411\u670829\u65e5\u65f6\u70b9\u8fd0\u884cLambda\uff0c\u8bf7\u5b89\u88c54.3\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>https:\/\/nodejs.org\/dist\/v4.3.2\/node-v4.3.2-linux-x64.tar.xz\r\n<\/code><\/pre>\n<h1>\u5b89\u88c5<\/h1>\n<pre class=\"post-pre\"><code>tar Jxfv node-v7.2.0-linux-x64.tar.xz\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>chmod 777 node-v7.2.0-linux-x64\r\nmv node-v7.2.0-linux-x64 \/usr\/bin\/node-v7.2.0-linux-x64\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>ln -s \/usr\/bin\/node-v7.2.0-linux-x64 \/usr\/bin\/node\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>touch \/etc\/profile.d\/node.sh\r\n\r\ncat &lt;&lt; EOS &gt;&gt; \/etc\/profile.d\/node.sh\r\nexport NODE_HOME=\/usr\/bin\/node\r\nexport NODE_PATH=$NODE_HOME\/lib\/node_modules\r\nexport PATH=$NODE_HOME\/bin:$PATH\r\nEOS\r\n\r\nsource \/etc\/profile\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>node -v\r\nnpm -v\r\n<\/code><\/pre>\n<h1>\u5347\u7ea7npm\u7248\u672c<\/h1>\n<pre class=\"post-pre\"><code>npm install -g npm\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u516c\u5f0f\u4e0b\u8f7d\u6587\u4ef6\u3002 https:\/\/nodejs.org\/ja\/ &#8211; \u8bf7\u8bbf\u95ee\u8fd9\u4e2a\u94fe\u63a5 https:\/ [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32306","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>npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55 - 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\/npmnode-js-\u5b89\u88c5\u5907\u5fd8\u5f55\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55\" \/>\n<meta property=\"og:description\" content=\"\u4ece\u516c\u5f0f\u4e0b\u8f7d\u6587\u4ef6\u3002 https:\/\/nodejs.org\/ja\/ &#8211; \u8bf7\u8bbf\u95ee\u8fd9\u4e2a\u94fe\u63a5 https:\/ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-\u5b89\u88c5\u5907\u5fd8\u5f55\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-03T18:34:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-14T23:14:38+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/\",\"name\":\"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-10-03T18:34:18+00:00\",\"dateModified\":\"2024-01-14T23:14:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55\"}]},{\"@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\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55 - 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\/npmnode-js-\u5b89\u88c5\u5907\u5fd8\u5f55\/","og_locale":"zh_CN","og_type":"article","og_title":"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55","og_description":"\u4ece\u516c\u5f0f\u4e0b\u8f7d\u6587\u4ef6\u3002 https:\/\/nodejs.org\/ja\/ &#8211; \u8bf7\u8bbf\u95ee\u8fd9\u4e2a\u94fe\u63a5 https:\/ [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-\u5b89\u88c5\u5907\u5fd8\u5f55\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-10-03T18:34:18+00:00","article_modified_time":"2024-01-14T23:14:38+00:00","author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/","name":"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-10-03T18:34:18+00:00","dateModified":"2024-01-14T23:14:38+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"npm(Node.js) \u5b89\u88c5\u5907\u5fd8\u5f55"}]},{"@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\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/npmnode-js-%e5%ae%89%e8%a3%85%e5%a4%87%e5%bf%98%e5%bd%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32306","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32306"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32306\/revisions"}],"predecessor-version":[{"id":57273,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32306\/revisions\/57273"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}