美文网首页
npm run dev 报错: vuetest@1.0.0

npm run dev 报错: vuetest@1.0.0

作者: 改了个很帅的头像 | 来源:发表于2019-06-13 15:38 被阅读0次

遇到:
npm run dev 报错: vuetest@1.0.0 dev: webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
下面是原因


原因 : 因为是本地测试,所以 需要在host文件中 添加配置映射
|
127.0.0.1 www.fyy.cn
|
或者直接把index.js 文件的host写死 127.0.0.1


详细错误信息 :

  at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:25)
Emitted 'error' event at:
  at GetAddrInfoReqWrap.doListen [as callback] (net.js:1460:7)
  at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10)

或着 :

    at Server.setupListenHandle [as _listen2] (net.js:1262:19)
    at listenInCluster (net.js:1327:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1460:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10)
Emitted 'error' event at:
    at emitErrorNT (net.js:1306:8)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vuetest@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the vuetest@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

下面两个是一种错误 :

错误信息截图1.png 错误信息截图2.png

相关文章

网友评论

      本文标题:npm run dev 报错: vuetest@1.0.0

      本文链接:https://www.haomeiwen.com/subject/ncdsfctx.html