只為記錄自己遇到的錯誤。
?錯誤提示:
App running at:
? - Local: ? http://localhost:8080/
? - Network: unavailable
? Note that the development build is not optimized.
? To create a production build, run npm run build.
node:events:491
? ? ? throw er; // Unhandled 'error' event
? ? ? ^
在嘗試過關(guān)閉占用端口后還是無法解決,最后找到vue.config.js文件中?
將open中的true改為false即可正常運(yùn)行
至于端口號我這邊是指定為8080的了
在package.json中的dev中加 --port 8080即可指定端口號
文章來源:http://www.zghlxwxcb.cn/news/detail-781163.html
?只為記錄自己遇到的錯誤。文章來源地址http://www.zghlxwxcb.cn/news/detail-781163.html
到了這里,關(guān)于vue2.0運(yùn)行導(dǎo)入的項(xiàng)目出現(xiàn)node:events:491 throw er; // Unhandled ‘error‘ event錯誤提示解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!