{"id":65156,"date":"2026-01-24T15:40:42","date_gmt":"2026-01-24T07:40:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/65156.html"},"modified":"2026-01-24T15:40:42","modified_gmt":"2026-01-24T07:40:42","slug":"%e8%a7%a3%e5%86%b3-vue-%e9%a1%b9%e7%9b%ae-npm-run-dev-%e5%90%af%e5%8a%a8%e5%a4%b1%e8%b4%a5%e7%9a%84-6-%e4%b8%aa%e5%b8%b8%e8%a7%81%e5%8e%9f%e5%9b%a0%ef%bc%88%e9%99%84%e8%a7%a3%e5%86%b3%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/65156.html","title":{"rendered":"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09"},"content":{"rendered":"<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Vue \u9879\u76ee\u542f\u52a8\u662f\u524d\u7aef\u5f00\u53d1\u7684\u57fa\u7840\u64cd\u4f5c&#xff0c;\u4f46\u5f88\u591a\u65b0\u624b&#xff08;\u751a\u81f3\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005&#xff09;\u90fd\u4f1a\u9047\u5230\u00a0npm run dev&#xff08;\u6216\u00a0npm run serve&#xff09;\u542f\u52a8\u5931\u8d25\u7684\u95ee\u9898&#xff1a;\u8981\u4e48\u7ec8\u7aef\u62a5\u9519\u4e00\u5806\u7ea2\u5b57&#xff0c;\u8981\u4e48\u6d4f\u89c8\u5668\u767d\u5c4f&#xff0c;\u8981\u4e48\u63d0\u793a\u7aef\u53e3\u88ab\u5360\u7528\u3002\u672c\u6587\u6574\u7406\u4e86 6 \u4e2a\u6700\u5e38\u89c1\u7684\u5931\u8d25\u539f\u56e0&#xff0c;\u6bcf\u4e2a\u539f\u56e0\u90fd\u9644\u8be6\u7ec6\u89e3\u51b3\u65b9\u6848&#xff0c;\u770b\u5b8c\u5c31\u80fd\u89e3\u51b3 99% \u7684\u542f\u52a8\u95ee\u9898\u3002<\/p>\n<h4>\u5148\u660e\u786e&#xff1a;npm run dev \u548c npm run serve \u7684\u533a\u522b<\/h4>\n<p>Vue 2 \u9879\u76ee\u901a\u5e38\u7528\u00a0npm run dev&#xff0c;Vue 3 &#043; Vite \u6216\u65b0\u7248 Vue-CLI \u9879\u76ee\u7528\u00a0npm run serve&#xff0c;\u672c\u8d28\u90fd\u662f\u542f\u52a8\u5f00\u53d1\u670d\u52a1\u5668&#xff0c;\u672c\u6587\u89e3\u51b3\u65b9\u6848\u5bf9\u4e24\u8005\u5747\u9002\u7528\u3002<\/p>\n<h3>\u539f\u56e0 1&#xff1a;\u7aef\u53e3\u88ab\u5360\u7528&#xff08;\u6700\u5e38\u89c1&#xff09;<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p>\u7ec8\u7aef\u62a5\u9519&#xff1a;Error: listen EADDRINUSE: address already in use :::8080&#xff0c;\u6216\u542f\u52a8\u540e\u6d4f\u89c8\u5668\u65e0\u6cd5\u8bbf\u95ee\u00a0localhost:8080\u3002<\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<h5>\u65b9\u6848 1&#xff1a;\u4e34\u65f6\u4fee\u6539\u542f\u52a8\u547d\u4ee4&#xff08;\u5feb\u901f\u6d4b\u8bd5&#xff09;<\/h5>\n<p># \u76f4\u63a5\u6307\u5b9a\u7aef\u53e3\u542f\u52a8<br \/>\nnpm run dev &#8212; &#8211;port 8081<br \/>\n# \u6216<br \/>\nnpm run serve &#8212; &#8211;port 8081<\/p>\n<h5>\u65b9\u6848 2&#xff1a;\u6c38\u4e45\u4fee\u6539\u914d\u7f6e\u6587\u4ef6&#xff08;\u4e00\u52b3\u6c38\u9038&#xff09;<\/h5>\n<li>\u627e\u5230\u9879\u76ee\u6839\u76ee\u5f55\u7684\u00a0vue.config.js\u00a0\u6587\u4ef6&#xff08;\u6ca1\u6709\u5219\u65b0\u5efa&#xff09;&#xff1b;<\/li>\n<li>\u6dfb\u52a0\u7aef\u53e3\u914d\u7f6e&#xff1a;<\/li>\n<p>module.exports &#061; {<br \/>\n  devServer: {<br \/>\n    port: 8081, \/\/ \u6539\u4e3a\u672a\u88ab\u5360\u7528\u7684\u7aef\u53e3&#xff08;\u59828082\u30018888&#xff09;<br \/>\n    open: true \/\/ \u53ef\u9009&#xff1a;\u542f\u52a8\u540e\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668<br \/>\n  }<br \/>\n}<\/p>\n<li>\u4fdd\u5b58\u540e\u91cd\u65b0\u6267\u884c\u00a0npm run dev\u00a0\u5373\u53ef\u3002<\/li>\n<h5>\u989d\u5916&#xff1a;\u67e5\u770b\u5e76\u5173\u95ed\u5360\u7528\u7aef\u53e3\u7684\u8fdb\u7a0b&#xff08;Windows\/Linux\/Mac&#xff09;<\/h5>\n<p># Windows&#xff1a;\u67e5\u770b8080\u7aef\u53e3\u5360\u7528\u8fdb\u7a0b<br \/>\nnetstat -ano | findstr &#034;8080&#034;<br \/>\n# \u6740\u6b7b\u8fdb\u7a0b&#xff08;\u66ff\u6362\u4e3a\u67e5\u5230\u7684PID&#xff09;<br \/>\ntaskkill \/F \/PID 12345<\/p>\n<p># Linux\/Mac&#xff1a;\u67e5\u770b8080\u7aef\u53e3\u5360\u7528\u8fdb\u7a0b<br \/>\nlsof -i:8080<br \/>\n# \u6740\u6b7b\u8fdb\u7a0b<br \/>\nkill -9 12345<\/p>\n<h3>\u539f\u56e0 2&#xff1a;\u4f9d\u8d56\u672a\u5b89\u88c5\u5b8c\u6574 \/ \u4f9d\u8d56\u51b2\u7a81<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p>\u7ec8\u7aef\u62a5\u9519&#xff1a;module not found: Error: Can&#039;t resolve &#039;vue&#039; in xxx\u00a0\u6216\u00a0npm ERR! code ERESOLVE&#xff08;\u4f9d\u8d56\u89e3\u6790\u5931\u8d25&#xff09;\u3002<\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<li>\u5220\u9664\u65e7\u4f9d\u8d56\u548c\u9501\u6587\u4ef6&#xff1a;<\/li>\n<p># Windows<br \/>\nrmdir \/s node_modules<br \/>\ndel package-lock.json<\/p>\n<p># Linux\/Mac<br \/>\nrm -rf node_modules package-lock.json yarn.lock<\/p>\n<li>\u91cd\u65b0\u5b89\u88c5\u4f9d\u8d56&#xff08;\u63a8\u8350\u7528\u6dd8\u5b9d\u6e90\u52a0\u901f&#xff09;&#xff1a;<\/li>\n<p># \u4e34\u65f6\u7528\u6dd8\u5b9d\u6e90<br \/>\nnpm install &#8211;registry&#061;https:\/\/registry.npmmirror.com<\/p>\n<p># \u6216\u6c38\u4e45\u914d\u7f6e\u6dd8\u5b9d\u6e90&#xff08;\u540e\u7eed\u5b89\u88c5\u90fd\u5feb&#xff09;<br \/>\nnpm config set registry https:\/\/registry.npmmirror.com<br \/>\nnpm install<\/p>\n<li>\u82e5\u4ecd\u62a5\u9519&#xff0c;\u68c0\u67e5\u00a0package.json\u00a0\u4e2d\u4f9d\u8d56\u7248\u672c\u662f\u5426\u51b2\u7a81&#xff08;\u6bd4\u5982 Vue 2 \u9879\u76ee\u88c5\u4e86 Vue 3 \u7684\u4f9d\u8d56&#xff09;&#xff0c;\u53ef\u964d\u4f4e \/ \u5347\u7ea7\u4f9d\u8d56\u7248\u672c\u3002<\/li>\n<h3>\u539f\u56e0 3&#xff1a;Node \u7248\u672c\u4e0d\u517c\u5bb9<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p>\u7ec8\u7aef\u62a5\u9519&#xff1a;npm ERR! Unsupported engine\u00a0\u6216\u542f\u52a8\u540e\u51fa\u73b0\u5927\u91cf\u8bed\u6cd5\u9519\u8bef&#xff08;\u5982\u00a0Unexpected token ?&#xff09;\u3002<\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<p>Vue 2 \u63a8\u8350 Node 12.x &#8211; 16.x&#xff0c;Vue 3 \u63a8\u8350 Node 16.x \u53ca\u4ee5\u4e0a&#xff0c;\u7248\u672c\u8fc7\u9ad8 \/ \u8fc7\u4f4e\u90fd\u4f1a\u5bfc\u81f4\u542f\u52a8\u5931\u8d25&#xff1a;<\/p>\n<li>\u5b89\u88c5 Node \u7248\u672c\u7ba1\u7406\u5de5\u5177&#xff08;nvm&#xff0c;\u8de8\u5e73\u53f0\u901a\u7528&#xff09;&#xff1a;<\/li>\n<p># Windows\/Mac\/Linux \u5b89\u88c5nvm&#xff08;\u53c2\u8003nvm\u5b98\u7f51&#xff1a;https:\/\/github.com\/nvm-sh\/nvm&#xff09;<br \/>\n# \u5b89\u88c5\u6307\u5b9a\u7248\u672cNode<br \/>\nnvm install 16.18.0<br \/>\n# \u4f7f\u7528\u8be5\u7248\u672c<br \/>\nnvm use 16.18.0<\/p>\n<li>\u9a8c\u8bc1 Node \u7248\u672c&#xff1a;<\/li>\n<p>node -v # \u8f93\u51fav16.18.0\u5373\u53ef<\/p>\n<li>\u91cd\u65b0\u6267\u884c\u00a0npm run dev\u3002<\/li>\n<h3>\u539f\u56e0 4&#xff1a;\u4ee3\u7801 \/ \u914d\u7f6e\u8bed\u6cd5\u9519\u8bef<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p>\u7ec8\u7aef\u62a5\u9519&#xff1a;Syntax Error: Unexpected token\u00a0\u6216\u00a0Module parse failed: Unexpected character &#039;&#064;&#039;\u3002<\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<li>\u68c0\u67e5\u6838\u5fc3\u6587\u4ef6\u8bed\u6cd5&#xff1a;\n<ul>\n<li>main.js\/main.ts&#xff1a;\u662f\u5426\u5c11\u5199\u5206\u53f7\u3001\u62ec\u53f7\u4e0d\u5339\u914d&#xff0c;\u6216 ES6 \u8bed\u6cd5\u672a\u914d\u7f6e\u517c\u5bb9&#xff1b;<\/li>\n<li>vue.config.js&#xff1a;\u662f\u5426\u6709\u8bed\u6cd5\u9519\u8bef&#xff08;\u5982\u9017\u53f7\u9057\u6f0f\u3001\u5f15\u53f7\u4e0d\u95ed\u5408&#xff09;&#xff1b;<\/li>\n<li>.vue\u00a0\u6587\u4ef6&#xff1a;template \u6807\u7b7e\u662f\u5426\u53ea\u6709\u4e00\u4e2a\u6839\u8282\u70b9&#xff08;Vue 2 \u8981\u6c42&#xff09;&#xff0c;script \u6807\u7b7e\u8bed\u6cd5\u662f\u5426\u6b63\u786e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u82e5\u4f7f\u7528 TS\/ESLint&#xff0c;\u5148\u5173\u95ed ESLint \u4e34\u65f6\u6d4b\u8bd5&#xff08;\u4fee\u6539\u00a0vue.config.js&#xff09;&#xff1a;<\/li>\n<p>module.exports &#061; {<br \/>\n  lintOnSave: false \/\/ \u5173\u95edESLint\u6821\u9a8c<br \/>\n}<\/p>\n<h3>\u539f\u56e0 5&#xff1a;\u4ee3\u7406\u914d\u7f6e\u9519\u8bef&#xff08;\u542f\u52a8\u6210\u529f\u4f46\u63a5\u53e3\u8bf7\u6c42\u5931\u8d25 \/ \u767d\u5c4f&#xff09;<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p>\u9879\u76ee\u80fd\u542f\u52a8&#xff0c;\u4f46\u6d4f\u89c8\u5668\u63a7\u5236\u53f0\u62a5\u9519&#xff1a;Failed to fetch\u00a0\u6216\u00a0404 Not Found&#xff0c;\u9875\u9762\u767d\u5c4f\u65e0\u6570\u636e\u3002<\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<p>\u68c0\u67e5\u00a0vue.config.js\u00a0\u4e2d\u7684\u4ee3\u7406\u914d\u7f6e\u662f\u5426\u6b63\u786e&#xff08;\u4ee5\u5bf9\u63a5\u672c\u5730\u540e\u7aef\u63a5\u53e3\u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<p>module.exports &#061; {<br \/>\n  devServer: {<br \/>\n    proxy: {<br \/>\n      &#039;\/api&#039;: { \/\/ \u63a5\u53e3\u524d\u7f00<br \/>\n        target: &#039;http:\/\/localhost:3000&#039;, \/\/ \u540e\u7aef\u63a5\u53e3\u5730\u5740<br \/>\n        changeOrigin: true, \/\/ \u5f00\u542f\u8de8\u57df<br \/>\n        pathRewrite: { &#039;^\/api&#039;: &#039;&#039; } \/\/ \u53bb\u6389\u524d\u7f00&#xff08;\u540e\u7aef\u63a5\u53e3\u65e0\/api\u65f6\u914d\u7f6e&#xff09;<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>\u914d\u7f6e\u540e\u91cd\u542f\u9879\u76ee&#xff0c;\u9a8c\u8bc1\u63a5\u53e3\u662f\u5426\u80fd\u6b63\u5e38\u8bf7\u6c42\u3002<\/p>\n<h3>\u539f\u56e0 6&#xff1a;\u7f13\u5b58 \/ \u8fdb\u7a0b\u6b8b\u7559\u95ee\u9898<\/h3>\n<h4>\u95ee\u9898\u73b0\u8c61<\/h4>\n<p>\u65e0\u660e\u663e\u62a5\u9519&#xff0c;\u4f46\u542f\u52a8\u540e\u9875\u9762\u65e0\u54cd\u5e94&#xff0c;\u6216\u4fee\u6539\u914d\u7f6e\u540e\u4e0d\u751f\u6548\u3002<\/p>\n<h4>\u89e3\u51b3\u65b9\u6848<\/h4>\n<li>\u6e05\u9664 npm \u7f13\u5b58&#xff1a;<\/li>\n<p>npm cache clean &#8211;force<\/p>\n<li>\u6e05\u9664 Vue \u9879\u76ee\u7f13\u5b58&#xff08;Vite \u9879\u76ee&#xff09;&#xff1a;<\/li>\n<p># Vite\u9879\u76ee<br \/>\nnpm run clean<br \/>\n# \u6216\u624b\u52a8\u5220\u9664node_modules\/.vite<br \/>\nrm -rf node_modules\/.vite<\/p>\n<li>\u5173\u95ed\u6240\u6709\u7ec8\u7aef\u7a97\u53e3&#xff0c;\u91cd\u65b0\u6253\u5f00&#xff08;\u907f\u514d\u6b8b\u7559\u8fdb\u7a0b&#xff09;&#xff0c;\u518d\u6267\u884c\u00a0npm run dev\u3002<\/li>\n<h3>\u6d4b\u8bd5\u9a8c\u8bc1&#xff1a;\u542f\u52a8\u6210\u529f\u7684\u6807\u51c6<\/h3>\n<p>\u6267\u884c\u00a0npm run dev\u00a0\u540e&#xff0c;\u7ec8\u7aef\u8f93\u51fa\u4ee5\u4e0b\u5185\u5bb9\u5373\u4e3a\u6210\u529f&#xff1a;<\/p>\n<p>  App running at:<br \/>\n  &#8211; Local:   http:\/\/localhost:8081\/<br \/>\n  &#8211; Network: http:\/\/192.168.1.100:8081\/<\/p>\n<p>  Note that the development build is not optimized.<br \/>\n  To create a production build, run npm run build.<\/p>\n<p>\u6b64\u65f6\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee\u00a0http:\/\/localhost:8081&#xff0c;\u80fd\u6b63\u5e38\u663e\u793a\u9879\u76ee\u9875\u9762\u5373\u53ef\u3002<\/p>\n<h3>\u907f\u5751\u603b\u7ed3<\/h3>\n<li>\u542f\u52a8\u5931\u8d25\u4f18\u5148\u770b\u7ec8\u7aef\u62a5\u9519&#xff08;\u7ea2\u5b57\u90e8\u5206&#xff09;&#xff0c;80% \u7684\u95ee\u9898\u80fd\u4ece\u62a5\u9519\u4fe1\u606f\u5b9a\u4f4d&#xff1b;<\/li>\n<li>\u4f9d\u8d56\u5b89\u88c5\u5931\u8d25\u4f18\u5148\u6362\u6dd8\u5b9d\u6e90&#xff0c;Node \u7248\u672c\u95ee\u9898\u4f18\u5148\u7528 nvm \u5207\u6362&#xff1b;<\/li>\n<li>\u7aef\u53e3\u5360\u7528\u662f\u9ad8\u9891\u95ee\u9898&#xff0c;\u5efa\u8bae\u56fa\u5b9a\u4e00\u4e2a\u975e 8080 \u7684\u7aef\u53e3&#xff08;\u5982 8888&#xff09;&#xff1b;<\/li>\n<li>\u82e5\u4ee5\u4e0a\u65b9\u6cd5\u90fd\u65e0\u6548&#xff0c;\u53ef\u65b0\u5efa\u7a7a\u767d Vue \u9879\u76ee\u5bf9\u6bd4\u914d\u7f6e&#xff0c;\u6392\u67e5\u81ea\u5b9a\u4e49\u914d\u7f6e\u7684\u95ee\u9898\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>Vue \u9879\u76ee\u542f\u52a8\u662f\u524d\u7aef\u5f00\u53d1\u7684\u57fa\u7840\u64cd\u4f5c&#xff0c;\u4f46\u5f88\u591a\u65b0\u624b&#xff08;\u751a\u81f3\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005&#xff09;\u90fd\u4f1a\u9047\u5230\u00a0npm run dev&#xff08;\u6216\u00a0npm run serve&#xff09;\u542f\u52a8\u5931\u8d25\u7684\u95ee\u9898&#xff1a;\u8981\u4e48\u7ec8\u7aef\u62a5\u9519\u4e00\u5806\u7ea2\u5b57&#xff0c;\u8981\u4e48\u6d4f\u89c8\u5668\u767d\u5c4f&#xff0c;\u8981\u4e48\u63d0\u793a\u7aef\u53e3\u88ab\u5360\u7528\u3002\u672c\u6587\u6574\u7406\u4e86 6 \u4e2a\u6700\u5e38\u89c1\u7684\u5931\u8d25\u539f\u56e0&#xff0c;\u6bcf\u4e2a\u539f\u56e0\u90fd\u9644\u8be6\u7ec6\u89e3\u51b3\u65b9\u6848&#xff0c;\u770b\u5b8c\u5c31\u80fd\u89e3\u51b3 99% \u7684\u542f\u52a8\u95ee\u9898\u3002\u5148\u660e\u786e&#xff1a;npm ru<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[90,625,87],"topic":[],"class_list":["post-65156","post","type-post","status-publish","format-standard","hentry","category-server","tag-npm","tag-vue-js","tag-87"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/65156.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Vue \u9879\u76ee\u542f\u52a8\u662f\u524d\u7aef\u5f00\u53d1\u7684\u57fa\u7840\u64cd\u4f5c&#xff0c;\u4f46\u5f88\u591a\u65b0\u624b&#xff08;\u751a\u81f3\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005&#xff09;\u90fd\u4f1a\u9047\u5230\u00a0npm run dev&#xff08;\u6216\u00a0npm run serve&#xff09;\u542f\u52a8\u5931\u8d25\u7684\u95ee\u9898&#xff1a;\u8981\u4e48\u7ec8\u7aef\u62a5\u9519\u4e00\u5806\u7ea2\u5b57&#xff0c;\u8981\u4e48\u6d4f\u89c8\u5668\u767d\u5c4f&#xff0c;\u8981\u4e48\u63d0\u793a\u7aef\u53e3\u88ab\u5360\u7528\u3002\u672c\u6587\u6574\u7406\u4e86 6 \u4e2a\u6700\u5e38\u89c1\u7684\u5931\u8d25\u539f\u56e0&#xff0c;\u6bcf\u4e2a\u539f\u56e0\u90fd\u9644\u8be6\u7ec6\u89e3\u51b3\u65b9\u6848&#xff0c;\u770b\u5b8c\u5c31\u80fd\u89e3\u51b3 99% \u7684\u542f\u52a8\u95ee\u9898\u3002\u5148\u660e\u786e&#xff1a;npm ru\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/65156.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-24T07:40:42+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65156.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/65156.html\",\"name\":\"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-24T07:40:42+00:00\",\"dateModified\":\"2026-01-24T07:40:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/65156.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/65156.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65156.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/65156.html","og_locale":"zh_CN","og_type":"article","og_title":"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Vue \u9879\u76ee\u542f\u52a8\u662f\u524d\u7aef\u5f00\u53d1\u7684\u57fa\u7840\u64cd\u4f5c&#xff0c;\u4f46\u5f88\u591a\u65b0\u624b&#xff08;\u751a\u81f3\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005&#xff09;\u90fd\u4f1a\u9047\u5230\u00a0npm run dev&#xff08;\u6216\u00a0npm run serve&#xff09;\u542f\u52a8\u5931\u8d25\u7684\u95ee\u9898&#xff1a;\u8981\u4e48\u7ec8\u7aef\u62a5\u9519\u4e00\u5806\u7ea2\u5b57&#xff0c;\u8981\u4e48\u6d4f\u89c8\u5668\u767d\u5c4f&#xff0c;\u8981\u4e48\u63d0\u793a\u7aef\u53e3\u88ab\u5360\u7528\u3002\u672c\u6587\u6574\u7406\u4e86 6 \u4e2a\u6700\u5e38\u89c1\u7684\u5931\u8d25\u539f\u56e0&#xff0c;\u6bcf\u4e2a\u539f\u56e0\u90fd\u9644\u8be6\u7ec6\u89e3\u51b3\u65b9\u6848&#xff0c;\u770b\u5b8c\u5c31\u80fd\u89e3\u51b3 99% \u7684\u542f\u52a8\u95ee\u9898\u3002\u5148\u660e\u786e&#xff1a;npm ru","og_url":"https:\/\/www.wsisp.com\/helps\/65156.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-24T07:40:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/65156.html","url":"https:\/\/www.wsisp.com\/helps\/65156.html","name":"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-24T07:40:42+00:00","dateModified":"2026-01-24T07:40:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/65156.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/65156.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/65156.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u89e3\u51b3 Vue \u9879\u76ee npm run dev \u542f\u52a8\u5931\u8d25\u7684 6 \u4e2a\u5e38\u89c1\u539f\u56e0\uff08\u9644\u89e3\u51b3\u65b9\u6848\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=65156"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65156\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=65156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=65156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=65156"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=65156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}