{"id":28305,"date":"2024-11-24T16:49:25","date_gmt":"2024-11-24T08:49:25","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28305\/"},"modified":"2024-11-24T16:49:25","modified_gmt":"2024-11-24T08:49:25","slug":"angular-13-%e7%83%ad%e6%9b%b4%e6%96%b0%e5%a4%b1%e6%95%88%ef%bc%9a%e4%b8%ba%e4%bb%80%e4%b9%88-wsl-%e4%b8%ad%e7%9a%84-node-js-%e6%97%a0%e6%b3%95%e8%af%86%e5%88%ab%e9%a1%b9%e7%9b%ae%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28305\/","title":{"rendered":"Angular 13 \u70ed\u66f4\u65b0\u5931\u6548\uff1a\u4e3a\u4ec0\u4e48 WSL \u4e2d\u7684 Node.js \u65e0\u6cd5\u8bc6\u522b\u9879\u76ee\u6587\u4ef6\u66f4\u65b0\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173148665137180.jpg\" class=\"aligncenter\" title=\"Angular 13 \u70ed\u66f4\u65b0\u5931\u6548\uff1a\u4e3a\u4ec0\u4e48 WSL \u4e2d\u7684 Node.js \u65e0\u6cd5\u8bc6\u522b\u9879\u76ee\u6587\u4ef6\u66f4\u65b0\uff1f\u63d2\u56fe\" alt=\"Angular 13 \u70ed\u66f4\u65b0\u5931\u6548\uff1a\u4e3a\u4ec0\u4e48 WSL \u4e2d\u7684 Node.js \u65e0\u6cd5\u8bc6\u522b\u9879\u76ee\u6587\u4ef6\u66f4\u65b0\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>angular 13 \u70ed\u66f4\u65b0\u5931\u6548\u7684\u7591\u96be\u89e3\u7b54<\/strong><\/p>\n<p>\u4e00\u4f4d\u4f7f\u7528 Angular 13 \u548c ng-zorro \u5e93\u7684\u5f00\u53d1\u8005\u9047\u5230\u70ed\u66f4\u65b0\u65e0\u6548\u7684\u95ee\u9898\u3002\u5c3d\u7ba1\u5df2\u542f\u7528\u70ed\u66f4\u65b0\u529f\u80fd\uff0c\u4f46\u5728\u4fee\u6539 HTML\u3001CSS \u6216 TS \u6587\u4ef6\u540e\uff0c\u524d\u7aef\u5e76\u6ca1\u6709\u81ea\u52a8\u91cd\u65b0\u7f16\u8bd1\u6216\u66f4\u65b0\u3002<\/p>\n<p><strong>\u95ee\u9898\u5206\u6790<\/strong><\/p>\n<p>\u5f00\u53d1\u4eba\u5458\u68c0\u67e5\u4e86\u4ed6\u4eec\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u73af\u5883\u6587\u4ef6\u3001angular.json \u548c package.json\uff0c\u4e00\u5207\u4f3c\u4e4e\u90fd\u5df2\u6b63\u786e\u914d\u7f6e\u3002\u4ed6\u4eec\u8fd8\u786e\u8ba4\u5728 Webstorm \u63a7\u5236\u53f0\u4e2d\u542f\u52a8\u4e86\u70ed\u66f4\u65b0\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u7834\u6848\u7684\u8c1c\u5e95\u51fa\u4eba\u610f\u6599\uff1a\u539f\u5148\u8fd0\u884c\u6307\u4ee4\u548c\u9879\u76ee\u4f4d\u7f6e\u4e0d\u4e00\u81f4\u9020\u6210\u8be5\u95ee\u9898\u3002\u5f00\u53d1\u4eba\u5458\u5728 WSL\uff08Windows 10 WSL \u5b50\u7cfb\u7edf\uff09\u5185\u4f7f\u7528\u4e86 Node.js\uff0c\u4f46\u9879\u76ee\u6587\u4ef6\u5374\u4f4d\u4e8e Windows \u4e3b\u5b58\u50a8\u7a7a\u95f4\u5185\u3002<\/p>\n<p><strong>\u4e8b\u5b9e\u89e3\u91ca<\/strong><\/p>\n<p>\u76ee\u524d\uff0c\u5728 Windows \u5e95\u5c42\u8de8\u5185\u6838\u4e8b\u4ef6\u63a8\u9001\u5c1a\u672a\u5f97\u5230\u652f\u6301\u3002\u8fd9\u610f\u5473\u7740 WSL \u4e2d\u7684 Node.js \u65e0\u6cd5\u5411\u4e3b Windows \u53d1\u9001\u70ed\u66f4\u65b0\u4e8b\u4ef6\u3002\u56e0\u6b64\uff0c\u5373\u4f7f\u542f\u7528\u4e86\u70ed\u66f4\u65b0\u529f\u80fd\uff0cAngular \u4ecd\u7136\u65e0\u6cd5\u68c0\u6d4b\u5230\u6587\u4ef6\u66f4\u6539\u5e76\u81ea\u52a8\u89e6\u53d1\u91cd\u65b0\u7f16\u8bd1\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u9700\u8981\u5c06\u5f00\u53d1\u9879\u76ee\u79fb\u52a8\u5230 WSL \u5b58\u50a8\u76ee\u5f55\u5185\u3002\u901a\u8fc7\u5c06\u9879\u76ee\u653e\u5165 WSL\uff0cNode.js\uff08\u8fd0\u884c\u5728 WSL \u4e2d\uff09\u4fbf\u53ef\u4ee5\u8bbf\u95ee\u6587\u4ef6\uff0c\u5e76\u5411 Angular \u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u70ed\u66f4\u65b0\u4e8b\u4ef6\u3002<\/p>\n<p><strong>\u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n<p>stack \u4e0a\u7684\u5176\u4ed6\u5f00\u53d1\u8005\u4e5f\u9047\u5230\u4e86\u7c7b\u4f3c\u95ee\u9898\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684\uff0c\u5305\u62ec\u5728 Windows \u7cfb\u7edf\u4e0a\u5b89\u88c5 Linux \u4eff\u771f\u73af\u5883\u4ee5\u53ca\u4f7f\u7528 Docker \u9884\u5148\u5c06\u9879\u76ee\u6784\u5efa\u4e3a Docker \u5bb9\u5668\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u7279\u5b9a\u60c5\u51b5\u800c\u8a00\uff0c\u6700\u4f73\u89e3\u51b3\u65b9\u6848\u662f\u5c06\u9879\u76ee\u79fb\u52a8\u5230 WSL \u5b58\u50a8\u76ee\u5f55\u5185\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fAngular 13 \u70ed\u66f4\u65b0\u5931\u6548\uff1a WSL \u4e2d\u7684 Node.js \u65e0\u6cd5\u8bc6\u522b\u9879\u76ee\u6587\u4ef6\u66f4\u65b0\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>angular 13 \u70ed\u66f4\u65b0\u5931\u6548\u7684\u7591\u96be\u89e3\u7b54 \u4e00\u4f4d\u4f7f\u7528 Angular 13 \u548c ng-zorro \u5e93\u7684\u5f00\u53d1\u8005\u9047\u5230\u70ed\u66f4\u65b0\u65e0\u6548\u7684\u95ee\u9898\u3002\u5c3d\u7ba1\u5df2\u542f\u7528\u70ed\u66f4\u65b0\u529f\u80fd\uff0c\u4f46\u5728\u4fee\u6539 HTML\u3001CSS \u6216 TS \u6587\u4ef6\u540e\uff0c\u524d\u7aef\u5e76\u6ca1\u6709\u81ea\u52a8\u91cd\u65b0\u7f16\u8bd1\u6216\u66f4\u65b0\u3002 \u95ee\u9898\u5206\u6790 \u5f00\u53d1\u4eba\u5458\u68c0\u67e5\u4e86\u4ed6\u4eec\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u73af\u5883\u6587\u4ef6\u3001angular.json \u548c package.json\uff0c\u4e00\u5207\u4f3c\u4e4e\u90fd\u5df2\u6b63\u786e\u914d\u7f6e\u3002\u4ed6\u4eec\u8fd8\u786e\u8ba4\u5728 Webstorm \u63a7\u5236\u53f0\u4e2d\u542f\u52a8\u4e86\u70ed\u66f4\u65b0\u3002 \u89e3\u51b3\u65b9\u6848 \u7834\u6848\u7684\u8c1c\u5e95\u51fa\u4eba\u610f\u6599\uff1a\u539f\u5148\u8fd0\u884c\u6307\u4ee4\u548c\u9879\u76ee\u4f4d\u7f6e\u4e0d\u4e00\u81f4\u9020\u6210\u8be5\u95ee\u9898\u3002\u5f00\u53d1\u4eba\u5458\u5728 WSL\uff08Windows 10 WSL \u5b50\u7cfb\u7edf\uff09\u5185\u4f7f\u7528\u4e86 Node.js\uff0c\u4f46\u9879\u76ee\u6587\u4ef6\u5374\u4f4d\u4e8e Windows \u4e3b\u5b58\u50a8\u7a7a\u95f4\u5185\u3002 \u4e8b\u5b9e\u89e3\u91ca \u76ee\u524d\uff0c\u5728 Windows \u5e95\u5c42\u8de8\u5185\u6838\u4e8b\u4ef6\u63a8\u9001\u5c1a\u672a\u5f97\u5230\u652f\u6301\u3002\u8fd9\u610f\u5473\u7740 WSL \u4e2d\u7684 Node.js \u65e0\u6cd5\u5411\u4e3b Windows \u53d1\u9001\u70ed\u66f4\u65b0\u4e8b\u4ef6\u3002\u56e0\u6b64\uff0c\u5373\u4f7f\u542f\u7528\u4e86\u70ed\u66f4\u65b0\u529f\u80fd\uff0cAngular \u4ecd\u7136\u65e0\u6cd5\u68c0\u6d4b\u5230\u6587\u4ef6\u66f4\u6539\u5e76\u81ea\u52a8\u89e6\u53d1\u91cd\u65b0\u7f16\u8bd1\u3002 \u89e3\u51b3\u65b9\u6848 \u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u9700\u8981\u5c06\u5f00\u53d1\u9879\u76ee\u79fb\u52a8\u5230 WSL \u5b58\u50a8\u76ee\u5f55\u5185\u3002\u901a\u8fc7\u5c06\u9879\u76ee\u653e\u5165 WSL\uff0cNode.js\uff08\u8fd0\u884c\u5728 WSL \u4e2d\uff09\u4fbf\u53ef\u4ee5\u8bbf\u95ee\u6587\u4ef6\uff0c\u5e76\u5411 Angular \u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u70ed\u66f4\u65b0\u4e8b\u4ef6\u3002 \u6ce8\u610f\u4e8b\u9879 stack \u4e0a\u7684\u5176\u4ed6\u5f00\u53d1\u8005\u4e5f\u9047\u5230\u4e86\u7c7b\u4f3c\u95ee\u9898\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684\uff0c\u5305\u62ec\u5728 Windows \u7cfb\u7edf\u4e0a\u5b89\u88c5 Linux \u4eff\u771f\u73af\u5883\u4ee5\u53ca\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-28305","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28305"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28305\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}