{"id":1327,"date":"2023-03-18T12:31:24","date_gmt":"2023-03-18T04:31:24","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1327"},"modified":"2023-04-29T09:10:34","modified_gmt":"2023-04-29T01:10:34","slug":"node-environment-deployment","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/18\/node-environment-deployment\/","title":{"rendered":"Node\u73af\u5883\u90e8\u7f72"},"content":{"rendered":"<h2>\u5168\u5c40\u4f9d\u8d56<\/h2>\n<pre><code>npm install -g yarn\nnpm install -g pm2\nnpm install -g umi\nnpm install -g cnpm\nnpm install -g node-gyp\ncnpm install -g node-sass<\/code><\/pre>\n<p><!-- more --><\/p>\n<h2>ionic node-sass\u9700\u8981\u5b89\u88c5visual studio\u3001python\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<p>\u76f4\u63a5\u4e0b\u8f7d\u7f16\u8bd1\u597d\u7684<code>node-sass<\/code>\u4e8c\u8fdb\u5236\u8d44\u6e90\uff0c\u4e0d\u7f16\u8bd1\uff0c\u5373\u53ef\uff08\u7528cnpm\u5b89\u88c5\uff09\u3002<\/p>\n<pre><code>cnpm install -g node-sass<\/code><\/pre>\n<h2>\u6e90\u914d\u7f6e<\/h2>\n<pre><code>npm config set registry https:\/\/registry.npm.taobao.org --global\nnpm config set disturl https:\/\/npm.taobao.org\/dist --global\n\nyarn config set registry https:\/\/registry.npm.taobao.org --global\nyarn config set disturl https:\/\/npm.taobao.org\/dist --global<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5168\u5c40\u4f9d\u8d56 npm install -g yarn npm install -g pm2 npm install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[135],"class_list":["post-1327","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-node"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1327"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1327\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}