{"id":21484,"date":"2024-11-19T10:41:00","date_gmt":"2024-11-19T02:41:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21484\/"},"modified":"2024-11-19T10:41:00","modified_gmt":"2024-11-19T02:41:00","slug":"webstorm%e6%80%8e%e4%b9%88%e9%85%8d%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21484\/","title":{"rendered":"webstorm\u600e\u4e48\u914d\u73af\u5883"},"content":{"rendered":"<blockquote><p>\n  webstorm \u73af\u5883\u914d\u7f6e\u5206\u6b65\u6307\u5357\uff1a\u5b89\u88c5 node.js \u548c npm\u3002\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 webstorm\u3002\u521b\u5efa\u6216\u6253\u5f00\u4e00\u4e2a\u9879\u76ee\u3002\u914d\u7f6e node.js \u548c npm \u8def\u5f84\u3002\u4f7f\u7528 npm \u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\u9879\u3002\u914d\u7f6e web \u670d\u52a1\u5668\u3002\u5b89\u88c5 babel\u3001eslint \u548c prettier \u7b49\u5de5\u5177\u3002\u8c03\u6574\u4ee3\u7801\u6837\u5f0f\u3001\u521b\u5efa\u4ee3\u7801\u7247\u6bb5\u548c\u6a21\u677f\u3002\u9047\u5230\u95ee\u9898\u65f6\uff0c\u68c0\u67e5\u5b89\u88c5\u548c\u914d\u7f6e\uff0c\u91cd\u65b0\u542f\u52a8 webstorm \u6216\u5bfb\u6c42\u5728\u7ebf\u652f\u6301\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/30\/2024053022213951347.jpg\" class=\"aligncenter\" title=\"webstorm\u600e\u4e48\u914d\u73af\u5883\u63d2\u56fe\" alt=\"webstorm\u600e\u4e48\u914d\u73af\u5883\u63d2\u56fe\" \/><\/p>\n<p><strong>WebStorm \u73af\u5883\u914d\u7f6e\u6307\u5357<\/strong><\/p>\n<p>WebStorm \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883 (IDE)\uff0c\u4e13\u4e3a Web \u5f00\u53d1\u4eba\u5458\u800c\u8bbe\u8ba1\u3002\u8981\u5145\u5206\u53d1\u6325\u5176\u529f\u80fd\uff0c\u9700\u8981\u6b63\u786e\u914d\u7f6e\u5f00\u53d1\u73af\u5883\u3002\u4ee5\u4e0b\u6307\u5357\u5c06\u5206\u6b65\u4ecb\u7ecd WebStorm \u73af\u5883\u914d\u7f6e\u7684\u5404\u4e2a\u65b9\u9762\u3002<\/p>\n<p><strong>1. \u5b89\u88c5 Node.js \u548c NPM<\/strong><\/p>\n<p>WebStorm \u4f9d\u8d56 Node.js \u548c npm\uff08Node \u5305\u7ba1\u7406\u5668\uff09\u6765\u8fd0\u884c\u8bb8\u591a\u529f\u80fd\u3002\u786e\u4fdd\u5df2\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 Node.js \u548c npm\u3002<\/p>\n<p><strong>2. \u5b89\u88c5 WebStorm<\/strong><\/p>\n<p>\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 WebStorm\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u754c\u9762\u5e03\u5c40\u548c\u63d2\u4ef6\u3002<\/p>\n<p><strong>3. \u8bbe\u7f6e\u9879\u76ee<\/strong><\/p>\n<p>\u6253\u5f00 WebStorm \u5e76\u521b\u5efa\u6216\u6253\u5f00\u4e00\u4e2a\u65b0\u9879\u76ee\u3002\u5bfc\u822a\u5230\u201cFile\u201d&gt;\u201cOpen\u201d\u6216\u4f7f\u7528\u201cCtrl\u201d+\u201cO\u201d\u5feb\u6377\u952e\u3002<\/p>\n<p><strong>4. \u914d\u7f6e Node.js \u548c NPM<\/strong><\/p>\n<p>\u5728\u201cPreferences\u201d&gt;\u201cNode.js and NPM\u201d\u4e0b\uff0c\u8bbe\u7f6e Node.js \u548c npm \u7684\u8def\u5f84\u3002\u5355\u51fb\u201c+\u201d\u6309\u94ae\u4ee5\u6dfb\u52a0\u65b0\u89e3\u91ca\u5668\uff0c\u7136\u540e\u9009\u62e9 Node.js \u5b89\u88c5\u4f4d\u7f6e\u3002<\/p>\n<p><strong>5. \u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\u9879<\/strong><\/p>\n<p>\u4f7f\u7528\u201cTerminal\u201d\u5de5\u5177\u7a97\u53e3\uff08\u201cView\u201d&gt;\u201cTool Windows\u201d&gt;\u201cTerminal\u201d\uff09\u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\u9879\u3002\u5728\u7ec8\u7aef\u4e2d\uff0c\u5bfc\u822a\u5230\u9879\u76ee\u76ee\u5f55\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>npm install<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>6. \u914d\u7f6e Web \u670d\u52a1\u5668<\/strong><\/p>\n<p>\u5982\u679c\u9879\u76ee\u4f7f\u7528 Web \u670d\u52a1\u5668\uff0c\u8bf7\u5728\u201cPreferences\u201d&gt;\u201cLanguages &amp; Frameworks\u201d&gt;\u201cNode.js\u201d\u4e0b\u914d\u7f6e\u670d\u52a1\u5668\u3002\u6dfb\u52a0\u670d\u52a1\u5668\u540d\u79f0\u3001\u4e3b\u673a\u548c\u7aef\u53e3\u3002<\/p>\n<p><strong>7. \u5b89\u88c5\u5de5\u5177<\/strong><\/p>\n<p>WebStorm \u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u5de5\u5177\uff0c\u4f8b\u5982 Babel\u3001ESLint \u548c Prettier\u3002\u4f7f\u7528\u201cPlugins\u201d\u5de5\u5177\u7a97\u53e3\uff08\u201cView\u201d&gt;\u201cTool Windows\u201d&gt;\u201cPlugins\u201d\uff09\u5b89\u88c5\u8fd9\u4e9b\u5de5\u5177\u3002<\/p>\n<p><strong>8. \u8c03\u6574\u8bbe\u7f6e<\/strong><\/p>\n<p>\u6839\u636e\u4e2a\u4eba\u559c\u597d\u548c\u9879\u76ee\u8981\u6c42\uff0c\u8c03\u6574 WebStorm \u7684\u5176\u4ed6\u8bbe\u7f6e\u3002\u4f8b\u5982\uff0c\u5728\u201cPreferences\u201d&gt;\u201cEditor\u201d\u4e0b\u914d\u7f6e\u4ee3\u7801\u6837\u5f0f\u3002<\/p>\n<p><strong>9. \u521b\u5efa\u4ee3\u7801\u7247\u6bb5\u548c\u6a21\u677f<\/strong><\/p>\n<p>\u521b\u5efa\u4ee3\u7801\u7247\u6bb5\u548c\u6a21\u677f\u53ef\u52a0\u5feb\u5f00\u53d1\u901f\u5ea6\u3002\u4f7f\u7528\u201cCode\u201d&gt;\u201cInsert Code Snippet\u201d\u6216\u201cCode\u201d&gt;\u201cInsert Live Template\u201d\u83dc\u5355\u3002<\/p>\n<p><strong>\u6545\u969c\u6392\u9664\u6280\u5de7\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u5df2\u6b63\u786e\u5b89\u88c5 Node.js\u3001npm \u548c WebStorm\u3002<\/li>\n<li>\u68c0\u67e5\u9879\u76ee\u8def\u5f84\u548c\u4f9d\u8d56\u9879\u662f\u5426\u914d\u7f6e\u65e0\u8bef\u3002<\/li>\n<li>\u91cd\u65b0\u542f\u52a8 WebStorm \u4ee5\u5e94\u7528\u66f4\u6539\u3002<\/li>\n<li>\u53c2\u8003 WebStorm \u6587\u6863\u6216\u5728\u7ebf\u8bba\u575b\u4ee5\u83b7\u53d6\u5177\u4f53\u95ee\u9898\u5e2e\u52a9\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u914d\u73af\u5883\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>webstorm \u73af\u5883\u914d\u7f6e\u5206\u6b65\u6307\u5357\uff1a\u5b89\u88c5 node.js \u548c npm\u3002\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 webstorm\u3002\u521b\u5efa\u6216\u6253\u5f00\u4e00\u4e2a\u9879\u76ee\u3002\u914d\u7f6e node.js \u548c npm \u8def\u5f84\u3002\u4f7f\u7528 npm \u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\u9879\u3002\u914d\u7f6e web \u670d\u52a1\u5668\u3002\u5b89\u88c5 babel\u3001eslint \u548c prettier \u7b49\u5de5\u5177\u3002\u8c03\u6574\u4ee3\u7801\u6837\u5f0f\u3001\u521b\u5efa\u4ee3\u7801\u7247\u6bb5\u548c\u6a21\u677f\u3002\u9047\u5230\u95ee\u9898\u65f6\uff0c\u68c0\u67e5\u5b89\u88c5\u548c\u914d\u7f6e\uff0c\u91cd\u65b0\u542f\u52a8 webstorm \u6216\u5bfb\u6c42\u5728\u7ebf\u652f\u6301\u3002 WebStorm \u73af\u5883\u914d\u7f6e\u6307\u5357 WebStorm \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883 (IDE)\uff0c\u4e13\u4e3a Web \u5f00\u53d1\u4eba\u5458\u800c\u8bbe\u8ba1\u3002\u8981\u5145\u5206\u53d1\u6325\u5176\u529f\u80fd\uff0c\u9700\u8981\u6b63\u786e\u914d\u7f6e\u5f00\u53d1\u73af\u5883\u3002\u4ee5\u4e0b\u6307\u5357\u5c06\u5206\u6b65\u4ecb\u7ecd WebStorm \u73af\u5883\u914d\u7f6e\u7684\u5404\u4e2a\u65b9\u9762\u3002 1. \u5b89\u88c5 Node.js \u548c NPM WebStorm \u4f9d\u8d56 Node.js \u548c npm\uff08Node \u5305\u7ba1\u7406\u5668\uff09\u6765\u8fd0\u884c\u8bb8\u591a\u529f\u80fd\u3002\u786e\u4fdd\u5df2\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 Node.js \u548c npm\u3002 2. \u5b89\u88c5 WebStorm \u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 WebStorm\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u754c\u9762\u5e03\u5c40\u548c\u63d2\u4ef6\u3002 3. \u8bbe\u7f6e\u9879\u76ee \u6253\u5f00 WebStorm \u5e76\u521b\u5efa\u6216\u6253\u5f00\u4e00\u4e2a\u65b0\u9879\u76ee\u3002\u5bfc\u822a\u5230\u201cFile\u201d&gt;\u201cOpen\u201d\u6216\u4f7f\u7528\u201cCtrl\u201d+\u201cO\u201d\u5feb\u6377\u952e\u3002 4. \u914d\u7f6e [&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-21484","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21484","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=21484"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21484\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}