<br />
<b>Warning</b>:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/qtranslate-x/qtranslate_frontend.php</b> on line <b>497</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
<br />
<b>Warning</b>:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in <b>/home/users/2/flatworld/web/memoecho.com/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php</b> on line <b>340</b><br />
{"id":2485,"date":"2020-05-30T23:52:08","date_gmt":"2020-05-30T23:52:08","guid":{"rendered":"http:\/\/tech.memoecho.com\/?p=2485"},"modified":"2020-05-30T23:52:08","modified_gmt":"2020-05-30T23:52:08","slug":"%e4%b8%ad%e6%96%87-%e5%ae%9d%e5%a1%94%e7%8e%af%e5%a2%83%e4%b8%8b%e9%85%8d%e7%bd%aepm2nodevuewebpack%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"http:\/\/tech.memoecho.com\/zh\/nodejs\/%e4%b8%ad%e6%96%87-%e5%ae%9d%e5%a1%94%e7%8e%af%e5%a2%83%e4%b8%8b%e9%85%8d%e7%bd%aepm2nodevuewebpack%e7%8e%af%e5%a2%83\/","title":{"rendered":"\u5b9d\u5854\u73af\u5883\u4e0b\u914d\u7f6ePM2+NODE+VUE+WEBPACK\u73af\u5883"},"content":{"rendered":"<!-- WP QUADS Content Ad Plugin v. 2.0.19 -->\n<div class=\"quads-location quads-ad2\" id=\"quads-ad2\" style=\"float:none;margin:0px;\">\n\n <!-- WP QUADS - Quick AdSense Reloaded v.2.0.19 Content AdSense async --> \n\n\n<script type=\"text\/javascript\" >\nvar quads_screen_width = document.body.clientWidth;\nif ( quads_screen_width >= 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 1024  && quads_screen_width < 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 768  && quads_screen_width < 1024 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width < 768 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }\n<\/script>\n\n <!-- end WP QUADS --> \n\n\n<\/div>\n<p><\/p>\n<p>1.\u5b89\u88c5\u5b9d\u5854\u754c\u9762\uff1b<\/p>\n<p>2.\u5728\u5b9d\u5854\u754c\u9762\u201c\u8f6f\u4ef6\u7ba1\u7406\u201d\u6216\u201c\u8f6f\u4ef6\u5546\u5e97\u201d\u5b89\u88c5PM2\uff1b<\/p>\n<p>3.\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u6210\u529f\u548c\u7248\u672c\u53f7\uff0c\u7528SSH\u767b\u9646\u670d\u52a1\u5668\uff1b\u8f93\u5165\uff1a<\/p>\n<p>a\u3001node -v \u547d\u4ee4\uff1a\u67e5\u770bnode\u7684\u7248\u672c\uff0c\u82e5\u51fa\u73b0\u76f8\u5e94\u7684\u7248\u672c\u53f7\uff0c\u5219\u8bf4\u660e\u4f60\u5b89\u88c5\u6210\u529f\u4e86\u3002<br \/>b\u3001npm -v \u547d\u4ee4\uff1anpm\u5305\u7ba1\u7406\u5668\uff0c\u662f\u96c6\u6210\u5728node\u4e2d\u7684\uff0c\u6240\u4ee5\u5b89\u88c5\u4e86node\u4e5f\u5c31\u6709\u4e86npm,\u76f4\u63a5\u8f93\u5165 npm -v \u547d\u4ee4\uff0c\u663e\u793anpm\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p>4.\u5b89\u88c5cnpm<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 npm install -g cnpm &#8211;registry=http:\/\/registry.npm.taobao.org \uff0c\u7136\u540e\u7b49\u5f85\uff0c\u6ca1\u62a5\u9519\u8868\u793a\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>5.\u5b89\u88c5webpack<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 cnpm install -g webpack<\/p>\n<p>6.\u5b89\u88c5vue\u7684\u811a\u624b\u67b6\u5de5\u5177<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 cnpm install -g vue-cli<\/p>\n<p>\u8f93\u5165\uff1avue\uff0c\u56de\u8f66\uff0c\u82e5\u51fa\u73b0vue\u4fe1\u606f\u8bf4\u660e\u8868\u793a\u6210\u529f\u3002<\/p>\n<p>7.\u521b\u5efa\u9879\u76ee\uff08\u53ef\u4ee5\u76f4\u63a5\u8fdb\u5165\u5b9d\u5854\u9ed8\u8ba4\u7f51\u7ad9\u76ee\u5f55 cd \/www\/wwwroot\/ \u6267\u884c\u3002 \uff09<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\uff1avue init webpack vue_test(\u9879\u76ee\u6587\u4ef6\u5939\u540d)\uff0c\u56de\u8f66\uff0c\u7b49\u5f85\u4e00\u5c0f\u4f1a\u513f\uff0c\u4f9d\u6b21\u51fa\u73b0\u2018git\u2019\u4e0b\u7684\u9879\u3002<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a\u6b64\u65f6\u4f1a\u4e0d\u65ad\u8981\u4f60\u8f93\u5165\u4e9b\u4e1c\u897f\uff0c\u6ce8\u610f\u5230Eslint\u90a3\u4e2a\u9009\u9879\u662f\u9009\u62e9<br \/>N\uff08Eslint\u662f\u8bed\u6cd5\u89c4\u5219\u548c\u4ee3\u7801\u98ce\u683c\u7684\u68c0\u67e5\u5de5\u5177\uff0c\u4f1a\u81ea\u52a8\u68c0\u6d4b\u5f53\u524d\u9879\u76ee\u7684\u4ee3\u7801\u662f\u5426\u7b26\u5408\u9884\u8bbe\u7684\u89c4\u5219\uff0c\u5982\u679c\u4f60\u7684\u4ee3\u7801\u5199\u5f97\u4e0d\u7b26\u5408\u9884\u8bbe\u7684\u89c4\u5219\u4f1a\u62a5\u9519\uff09\uff0c\u7136\u540e\u4e00\u76f4\u56de\u8f66\u3002<\/p>\n<!-- WP QUADS Content Ad Plugin v. 2.0.19 -->\n<div class=\"quads-location quads-ad2\" id=\"quads-ad2\" style=\"float:none;margin:0px;\">\n\n <!-- WP QUADS - Quick AdSense Reloaded v.2.0.19 Content AdSense async --> \n\n\n<script type=\"text\/javascript\" >\nvar quads_screen_width = document.body.clientWidth;\nif ( quads_screen_width >= 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 1024  && quads_screen_width < 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 768  && quads_screen_width < 1024 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width < 768 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }\n<\/script>\n\n <!-- end WP QUADS --> \n\n\n<\/div>\n\n<p>8.\u5b89\u88c5\u9879\u76ee\u6240\u9700\u4f9d\u8d56\uff0c\u8fdb\u5165\u9879\u76ee\u4e2d\uff1a<\/p>\n<p>cd vue_test<\/p>\n<p>cnpm install<\/p>\n<p>\u5b8c\u6210\u540e\uff0c\u4f1a\u53d1\u73b0\u9879\u76ee\u76ee\u5f55\u4e0b\u591a\u51fa\u4e00\u4e2anode_modules\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5c31\u662f vue-cli \u521b\u5efa\u7684\u4e00\u4e2a\u57fa\u4e8e webpack \u7684 vue.js \u9879\u76ee\u3002<\/p>\n<p>9.\u4e0a\u4f20\u9879\u76ee\u6587\u4ef6\u5230\u9879\u76ee\u76ee\u5f55\u91cc\u3002\u5e76\u4fee\u6539config\/index.js \u8bbf\u95ee\u7684IP\u548c\u7aef\u53e3\u53f7\u3002<\/p>\n<p>host: &#8216;127.0.0.1&#8217;, \/\/ can be overwritten by process.env.HOST<br \/>port: 8081, \/\/ can be overwritten by process.env.PORT, if port is in use, a free one will be determined<br \/>autoOpenBrowser: false,<br \/>errorOverlay: true,<br \/>notifyOnErrors: true,<\/p>\n<p>10.\u8fd0\u884c\u9879\u76ee<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 npm run dev<\/p>\n<p>\u5f53\u663e\u793a\uff1aYour application is running here: http:\/\/127.0.0.1:8081 \u4ee3\u8868\u9879\u76ee\u8fd0\u884c\u6210\u529f\uff01<\/p>\n<p>\u4f7f\u7528vue-cli\u521d\u59cb\u5316\u9879\u76ee\u65f6\u8fd0\u884c\u2018npm run dev\u2019\u62a5\u9519<\/p>\n<p>1\u3001\u8bd5\u4e00\u4e0b \u5378\u8f7dnpm uninstall webpack-dev-server\uff0c\u5728\u5b89\u88c5\u8fd9\u4e2anpm i webpack-dev-server@2.9.7\uff0c\u6211\u7684\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u4e86\u3002 <br \/>2\u3001\u5220\u9664node_modules\u76ee\u5f55\uff0c\u4f7f\u7528npm install\uff0c\u4e0d\u8981\u7528cnpm\uff0cnpm\u4e5f\u662f\u53ef\u4ee5\u8bbe\u7f6e\u6210\u6dd8\u5b9d\u955c\u50cf\u7684\uff0ccnpm\u6709\u65f6\u5019\u7528\u8d77\u6765\u4f1a\u6709\u5f88\u591a\u95ee\u9898\uff0c\u65e0\u540d\u65e0\u6545\u7684\u5b89\u88c5\u4e9b\u591a\u4f59\u7684\u4e1c\u897f\u3002<br \/>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300c\u9b54\u62c9\u5b9d\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<br \/>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/blog.csdn.net\/jeefchen\/article\/details\/101293750\n<!-- WP QUADS Content Ad Plugin v. 2.0.19 -->\n<div class=\"quads-location quads-ad2\" id=\"quads-ad2\" style=\"float:none;margin:0px;\">\n\n <!-- WP QUADS - Quick AdSense Reloaded v.2.0.19 Content AdSense async --> \n\n\n<script type=\"text\/javascript\" >\nvar quads_screen_width = document.body.clientWidth;\nif ( quads_screen_width >= 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 1024  && quads_screen_width < 1140 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width >= 768  && quads_screen_width < 1024 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }if ( quads_screen_width < 768 ) {document.write('<ins class=\"adsbygoogle\" style=\"display:inline-block;width:336px;height:280px;\" data-ad-client=\"pub-8568501110011894\" data-ad-slot=\"4911828489\" ><\/ins>');\r\n            (adsbygoogle = window.adsbygoogle || []).push({});\r\n            }\n<\/script>\n\n <!-- end WP QUADS --> \n\n\n<\/div>\n<\/p>\n<p>","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5\u5b9d\u5854\u754c\u9762\uff1b 2.\u5728\u5b9d\u5854\u754c\u9762\u201c\u8f6f\u4ef6\u7ba1\u7406\u201d\u6216\u201c\u8f6f\u4ef6\u5546\u5e97\u201d\u5b89\u88c5PM2\uff1b 3.\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u6210\u529f\u548c\u7248\u672c\u53f7\uff0c\u7528SSH\u767b\u9646\u670d\u52a1\u5668\uff1b\u8f93\u5165\uff1a a\u3001node -v [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[298,278],"tags":[],"pwapp_after_post_content":"","pwapp_before_post_content":"","androapp_header":"","pwapp_author":{"ID":1,"name":"enadmin","slug":"enadmin"},"pwapp_terms":{"category":[{"term_id":298,"name":"node.js","slug":"node-js","term_group":0,"term_taxonomy_id":298,"taxonomy":"category","description":"","parent":0,"count":2,"filter":"raw","cat_ID":298,"category_count":2,"category_description":"","cat_name":"node.js","category_nicename":"node-js","category_parent":0,"ID":298},{"term_id":278,"name":"nodejs","slug":"nodejs","term_group":0,"term_taxonomy_id":278,"taxonomy":"category","description":"","parent":0,"count":2,"filter":"raw","cat_ID":278,"category_count":2,"category_description":"","cat_name":"nodejs","category_nicename":"nodejs","category_parent":0,"ID":278}]},"pwapp_feed_image_dimension_type":"preview","pwapp_post_image":null,"share_image":null,"featured_image_showhide":"show","pwapp_excerpt":"<p>1.\u5b89\u88c5\u5b9d\u5854\u754c\u9762\uff1b 2.\u5728\u5b9d\u5854\u754c\u9762\u201c\u8f6f\u4ef6\u7ba1\u7406\u201d\u6216\u201c\u8f6f\u4ef6\u5546\u5e97\u201d\u5b89\u88c5PM2\uff1b 3.\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u6210\u529f\u548c\u7248\u672c\u53f7\uff0c\u7528SSH\u767b\u9646\u670d\u52a1\u5668\uff1b\u8f93\u5165\uff1a a\u3001node -v [&hellip;]<\/p>\n","pwapp_title":"\u5b9d\u5854\u73af\u5883\u4e0b\u914d\u7f6ePM2+NODE+VUE+WEBPACK\u73af\u5883","androapp_image_list":[],"pwapp_post_content":"<style type=\"text\/css\">androapp img{\r\n    max-width: 100%;\r\n    height: auto;\r\n}\r\niframe{\r\n    max-width: 100%;    \r\n}\r\nfigure {\r\n    max-width: 100%;\r\n    height: auto;\r\n}\r\nimg{\r\n    max-width: 100% !important;\r\n    height: auto;\r\n}\r\ndiv {\r\n    max-width: 100% !important;\r\n}\r\nspan {\r\n    max-width:100%;\r\n    overflow: auto;\r\n}\r\naudio {\r\n    display:block;\r\n    visibility:visible !important;\r\n}\r\nvideo{\r\n    width:100%;\r\n    height:auto;\r\n}\r\n<\/style><div class='androapp'><p><\/p>\n<p>1.\u5b89\u88c5\u5b9d\u5854\u754c\u9762\uff1b<\/p>\n<p>2.\u5728\u5b9d\u5854\u754c\u9762\u201c\u8f6f\u4ef6\u7ba1\u7406\u201d\u6216\u201c\u8f6f\u4ef6\u5546\u5e97\u201d\u5b89\u88c5PM2\uff1b<\/p>\n<p>3.\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u6210\u529f\u548c\u7248\u672c\u53f7\uff0c\u7528SSH\u767b\u9646\u670d\u52a1\u5668\uff1b\u8f93\u5165\uff1a<\/p>\n<p>a\u3001node -v \u547d\u4ee4\uff1a\u67e5\u770bnode\u7684\u7248\u672c\uff0c\u82e5\u51fa\u73b0\u76f8\u5e94\u7684\u7248\u672c\u53f7\uff0c\u5219\u8bf4\u660e\u4f60\u5b89\u88c5\u6210\u529f\u4e86\u3002<br \/>b\u3001npm -v \u547d\u4ee4\uff1anpm\u5305\u7ba1\u7406\u5668\uff0c\u662f\u96c6\u6210\u5728node\u4e2d\u7684\uff0c\u6240\u4ee5\u5b89\u88c5\u4e86node\u4e5f\u5c31\u6709\u4e86npm,\u76f4\u63a5\u8f93\u5165 npm -v \u547d\u4ee4\uff0c\u663e\u793anpm\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p>4.\u5b89\u88c5cnpm<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 npm install -g cnpm &#8211;registry=http:\/\/registry.npm.taobao.org \uff0c\u7136\u540e\u7b49\u5f85\uff0c\u6ca1\u62a5\u9519\u8868\u793a\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>5.\u5b89\u88c5webpack<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 cnpm install -g webpack<\/p>\n<p>6.\u5b89\u88c5vue\u7684\u811a\u624b\u67b6\u5de5\u5177<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 cnpm install -g vue-cli<\/p>\n<p>\u8f93\u5165\uff1avue\uff0c\u56de\u8f66\uff0c\u82e5\u51fa\u73b0vue\u4fe1\u606f\u8bf4\u660e\u8868\u793a\u6210\u529f\u3002<\/p>\n<p>7.\u521b\u5efa\u9879\u76ee\uff08\u53ef\u4ee5\u76f4\u63a5\u8fdb\u5165\u5b9d\u5854\u9ed8\u8ba4\u7f51\u7ad9\u76ee\u5f55 cd \/www\/wwwroot\/ \u6267\u884c\u3002 \uff09<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\uff1avue init webpack vue_test(\u9879\u76ee\u6587\u4ef6\u5939\u540d)\uff0c\u56de\u8f66\uff0c\u7b49\u5f85\u4e00\u5c0f\u4f1a\u513f\uff0c\u4f9d\u6b21\u51fa\u73b0\u2018git\u2019\u4e0b\u7684\u9879\u3002<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a\u6b64\u65f6\u4f1a\u4e0d\u65ad\u8981\u4f60\u8f93\u5165\u4e9b\u4e1c\u897f\uff0c\u6ce8\u610f\u5230Eslint\u90a3\u4e2a\u9009\u9879\u662f\u9009\u62e9<br \/>N\uff08Eslint\u662f\u8bed\u6cd5\u89c4\u5219\u548c\u4ee3\u7801\u98ce\u683c\u7684\u68c0\u67e5\u5de5\u5177\uff0c\u4f1a\u81ea\u52a8\u68c0\u6d4b\u5f53\u524d\u9879\u76ee\u7684\u4ee3\u7801\u662f\u5426\u7b26\u5408\u9884\u8bbe\u7684\u89c4\u5219\uff0c\u5982\u679c\u4f60\u7684\u4ee3\u7801\u5199\u5f97\u4e0d\u7b26\u5408\u9884\u8bbe\u7684\u89c4\u5219\u4f1a\u62a5\u9519\uff09\uff0c\u7136\u540e\u4e00\u76f4\u56de\u8f66\u3002<\/p>\n<p>8.\u5b89\u88c5\u9879\u76ee\u6240\u9700\u4f9d\u8d56\uff0c\u8fdb\u5165\u9879\u76ee\u4e2d\uff1a<\/p>\n<p>cd vue_test<\/p>\n<p>cnpm install<\/p>\n<p>\u5b8c\u6210\u540e\uff0c\u4f1a\u53d1\u73b0\u9879\u76ee\u76ee\u5f55\u4e0b\u591a\u51fa\u4e00\u4e2anode_modules\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5c31\u662f vue-cli \u521b\u5efa\u7684\u4e00\u4e2a\u57fa\u4e8e webpack \u7684 vue.js \u9879\u76ee\u3002<\/p>\n<p>9.\u4e0a\u4f20\u9879\u76ee\u6587\u4ef6\u5230\u9879\u76ee\u76ee\u5f55\u91cc\u3002\u5e76\u4fee\u6539config\/index.js \u8bbf\u95ee\u7684IP\u548c\u7aef\u53e3\u53f7\u3002<\/p>\n<p>host: &#8216;127.0.0.1&#8217;, \/\/ can be overwritten by process.env.HOST<br \/>port: 8081, \/\/ can be overwritten by process.env.PORT, if port is in use, a free one will be determined<br \/>autoOpenBrowser: false,<br \/>errorOverlay: true,<br \/>notifyOnErrors: true,<\/p>\n<p>10.\u8fd0\u884c\u9879\u76ee<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 npm run dev<\/p>\n<p>\u5f53\u663e\u793a\uff1aYour application is running here: http:\/\/127.0.0.1:8081 \u4ee3\u8868\u9879\u76ee\u8fd0\u884c\u6210\u529f\uff01<\/p>\n<p>\u4f7f\u7528vue-cli\u521d\u59cb\u5316\u9879\u76ee\u65f6\u8fd0\u884c\u2018npm run dev\u2019\u62a5\u9519<\/p>\n<p>1\u3001\u8bd5\u4e00\u4e0b \u5378\u8f7dnpm uninstall webpack-dev-server\uff0c\u5728\u5b89\u88c5\u8fd9\u4e2anpm i webpack-dev-server@2.9.7\uff0c\u6211\u7684\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u4e86\u3002 <br \/>2\u3001\u5220\u9664node_modules\u76ee\u5f55\uff0c\u4f7f\u7528npm install\uff0c\u4e0d\u8981\u7528cnpm\uff0cnpm\u4e5f\u662f\u53ef\u4ee5\u8bbe\u7f6e\u6210\u6dd8\u5b9d\u955c\u50cf\u7684\uff0ccnpm\u6709\u65f6\u5019\u7528\u8d77\u6765\u4f1a\u6709\u5f88\u591a\u95ee\u9898\uff0c\u65e0\u540d\u65e0\u6545\u7684\u5b89\u88c5\u4e9b\u591a\u4f59\u7684\u4e1c\u897f\u3002<br \/>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300c\u9b54\u62c9\u5b9d\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<br \/>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/blog.csdn.net\/jeefchen\/article\/details\/101293750<\/p>\n<p><\/p><\/div>","pwapp_post_content_type":"postprocessed","pwapp_preview_type":"excerpt","androapp_failover_post_content_type":"","share_text":"1.\u5b89\u88c5\u5b9d\u5854\u754c\u9762\uff1b 2.\u5728\u5b9d\u5854\u754c\u9762\u201c\u8f6f\u4ef6\u7ba1\u7406\u201d\u6216\u201c\u8f6f\u4ef6\u5546\u5e97\u201d\u5b89\u88c5PM2\uff1b 3.\u68c0\u67e5\u662f\u5426\u5b89\u88c5\u6210\u529f\u548c\u7248\u672c\u53f7\uff0c\u7528SSH\u767b\u9646\u670d\u52a1\u5668\uff1b\u8f93\u5165\uff1a a\u3001node -v [&hellip;]\n\nvia http:\/\/tech.memoecho.com\/zh\/nodejs\/%e4%b8%ad%e6%96%87-%e5%ae%9d%e5%a1%94%e7%8e%af%e5%a2%83%e4%b8%8b%e9%85%8d%e7%bd%aepm2nodevuewebpack%e7%8e%af%e5%a2%83\/","supercache":"androappsupercache","_links":{"self":[{"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/posts\/2485"}],"collection":[{"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/comments?post=2485"}],"version-history":[{"count":1,"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/posts\/2485\/revisions"}],"predecessor-version":[{"id":2486,"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/posts\/2485\/revisions\/2486"}],"wp:attachment":[{"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/media?parent=2485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/categories?post=2485"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tech.memoecho.com\/zh\/wp-json\/wp\/v2\/tags?post=2485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}