node启动项目 异常 Error: listen EADDRNOTAVAIL: address not available 12.0.0.1:8090
原来是config 文件中index.js 里的host: ‘localhost’,被注释掉了!npm install 成功之后再次启动 npm start。启动 悟空crm前端前端项目npm start 提示。一直以为是node_modules文件包出错,cnpm install 也下了。一个下午一直在删除下载。node 也重新下了。然后发现本地的能运行。删除重新 安装 步骤。
启动 悟空crm前端前端项目npm start 提示
D:\wamp\www\P72crm_web>npm start
> 5kcrm@11.0.0 start D:\wamp\www\P72crm_web
> npm run dev
> 5kcrm@11.0.0 dev D:\wamp\www\P72crm_web
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
10% building modules 1/1 modules 0 activeevents.js:291
throw er; // Unhandled 'error' event
^
Error: listen EADDRNOTAVAIL: address not available 12.0.0.1:8090
at Server.setupListenHandle [as _listen2] (net.js:1300:21)
at listenInCluster (net.js:1365:12)
at doListen (net.js:1502:7)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
Emitted 'error' event on Server instance at:
at emitErrorNT (net.js:1344:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'EADDRNOTAVAIL',
errno: 'EADDRNOTAVAIL',
syscall: 'listen',
address: '12.0.0.1',
port: 8090
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! 5kcrm@11.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 5kcrm@11.0.0 dev 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\EDZ\AppData\Roaming\npm-cache\_logs\2021-03-15T07_18_34_289Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! 5kcrm@11.0.0 start: `npm run dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the 5kcrm@11.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\EDZ\AppData\Roaming\npm-cache\_logs\2021-03-15T07_18_34_353Z-debug.log
________________________________________________________________________
解决方案:
一直以为是node_modules文件包出错,
一直在删除 下载
cnpm install 也下了
node 也重新下了
一个下午一直在删除下载
然后发现本地的能运行
再找下原因
原来是config 文件中index.js 里的host: ‘localhost’,被注释掉了!!!
————————————————
——————————————————————————————————————
删除重新 安装 步骤
Step1:npm cache clean --force
Step2:rm -rf node_modules
Step3:rm -rf package-lock.json
Step4:npm install
npm install 成功之后再次启动 npm start
火山引擎开发者社区是火山引擎打造的AI技术生态平台,聚焦Agent与大模型开发,提供豆包系列模型(图像/视频/视觉)、智能分析与会话工具,并配套评测集、动手实验室及行业案例库。社区通过技术沙龙、挑战赛等活动促进开发者成长,新用户可领50万Tokens权益,助力构建智能应用。
更多推荐
所有评论(0)