尚品汇商城_的后台首页

在学习尚品汇商城的Vue项目安装过程中,遇到本地开发环境报错找不到local8888。问题源于Node.js版本过高(16.8.0)和webpack-dev-server的版本冲突。通过降级Node.js到14.17.5和固定webpack-dev-server为2.9.1版本来解决。具体操作包括卸载并重新安装webpack-dev-server,或者仅重装指定版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

项目场景:

学习尚品汇商城安装vue项目时的问题
一直报错弹窗找不到local8888
在这里插入图片描述

问题描述:

DeprecationWarning: Access to process.binding('http_parser') is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
 98% after emitting

原因分析:

1.0版本问题

Version compatibility could be the issue. Downgrading node js version from 16.8.0 to 14.17.5 resolved my issue.

2.0

This is packaged as a standalone npm module. To use in node, monkeypatch HTTPParser.,http-parser-js should work via monkey-patching on Node v6-v11, and v13., We found a way for you to contribute to the project! Looks like http-parser-js is missing a security policy. , In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.

执行语句

npm install http - parser - js

报错说明这些包版本太低了

npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to 
be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
npm WARN deprecated svgo@1.0.5: This SVGO version is no longer supported. Upgrade to v2.x.x.

3.0报错说

webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
在这里插入图片描述原因:新版的webpack-dev-server 3.1.14 存在问题。

解决方法:package.json 中指定 webpack-dev-server 低版本号

方法1:

“webpack-dev-server”: “^2.9.1”

删除 node_modules 目录,再重新安装依赖包

npm install -S // 这种方式安装的时间会长些,也可以只重装 webpack-dev-server模块

方法2:单独重装 webpack-dev-server模块

(1)、npm uninstall webpack-dev-server

(2)、npm install webpack-dev-server@2.9.1

(3)、npm run dev

解决方案:

每次报错都不一样可真行啊

不点击弹窗等待运行结束弹窗自动消失

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

明月常新

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值