zoukankan      html  css  js  c++  java
  • npm run dev报错,events.js:160 throw er; // Unhandled 'error' event

    小项目安装webpack,终于到最后了,但是npm run dev还是报错,气死我了,报错如下:

    lingling@▒▒▒▒▒▒ MINGW64 /d/wamp3/wamp/www/vue/8/vue-loader-demo
    $ npm run dev

    > vue-loader-demo@1.0.0 dev D:wamp3wampwwwvue8vue-loader-demo
    > webpack-dev-server --inline --hot --port 8082

    events.js:160
    throw er; // Unhandled 'error' event
    ^

    Error: listen EADDRINUSE 127.0.0.1:8082
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at Server._listen2 (net.js:1262:14)
    at listen (net.js:1298:10)
    at doListening (net.js:1397:7)
    at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10)

    npm ERR! Windows_NT 10.0.14393
    npm ERR! argv "D:\nodejs\node.exe" "d:\nodejs\node_global\node_modules\npm\bin\npm-cli.js" "run" "dev"
    npm ERR! node v7.4.0
    npm ERR! npm v4.1.1
    npm ERR! code ELIFECYCLE
    npm ERR! vue-loader-demo@1.0.0 dev: `webpack-dev-server --inline --hot --port 8082`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the vue-loader-demo@1.0.0 dev script 'webpack-dev-server --inline --hot --port 8082'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the vue-loader-demo package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR! webpack-dev-server --inline --hot --port 8082
    npm ERR! You can get information on how to open an issue for this project with:
    npm ERR! npm bugs vue-loader-demo
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR! npm owner ls vue-loader-demo
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR! D:wamp3wampwwwvue8vue-loader-demo pm-debug.log

     大家都想不到原因,我也想不到原因,竟然是因为nodejs版本太高了,我从7降到6,就好了。

  • 相关阅读:

    今天的收获080716
    手机写博客
    修改加速软件之本地分流(突破电信上网限制)
    Linux并不是传说中的那么不变
    Ubuntu Linux下的几款“磁盘操作阐明器”对比
    在SuSE中设置开机主动启动挨次
    Fedora显卡驱动的装配
    新Qt主题引擎让GNOME下KDE程序更舒服
    Ubuntu的运用总结
  • 原文地址:https://www.cnblogs.com/learnings/p/6293796.html
Copyright © 2011-2022 走看看