这是GitHub上的VUE JS MASONRY项目。我只是想跑步 它。我已经在运行npm install之前运行过它。好像 所有软件包均已正确安装。
PS C:\ Users \ Administrator \ Downloads \ vue-masonry-plugin-demo-master> npm start
> vue-masonry-demo@1.0.0 start C:\Users\Administrator\Downloads\vue-masonry-plugin-demo-master > node build/dev-server.js > Starting dev server... events.js:187 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE: address already in use :::8080 at Server.setupListenHandle [as _listen2] (net.js:1300:14) at listenInCluster (net.js:1348:12) at Server.listen (net.js:1436:7) at Function.listen (C:\Users\Administrator\Downloads\vue-masonry-plugin-demo-master\node_modules\express\lib\application.js:618:24) at Object.<anonymous> (C:\Users\Administrator\Downloads\vue-masonry-plugin-demo-master\build\dev-server.js:83:18) at Module._compile (internal/modules/cjs/loader.js:956:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14) at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) at internal/main/run_main_module.js:17:11 Emitted 'error' event on Server instance at: at emitErrorNT (net.js:1327:8) at processTicksAndRejections (internal/process/task_queues.js:80:21) { code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '::', port: 8080 } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! vue-masonry-demo@1.0.0 start: `node build/dev-server.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-masonry-demo@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-02-05T22_23_37_278Z-debug.log PS C:\Users\Administrator\Downloads\vue-masonry-plugin-demo-master>
PACKAGE.JSON
{“ name”:“ vue-masonry-demo”,“ version”:“ 1.0.0”,
“ description”:“一个Vue.js项目”,“ author”:“ Mikhail Kuznetcov ”,“私人”:true,“脚本”:{ “ dev”:“节点build / dev-server.js”, “ start”:“节点build / dev-server.js”, “ build”:“ node build / build.js”},
答案 0 :(得分:0)
Error: listen EADDRINUSE: address already in use :::8080
如果在此处选中它,您会发现的。