尚品汇商城_的后台首页
项目场景:
学习尚品汇商城安装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 didnt 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
解决方案:
每次报错都不一样可真行啊
不点击弹窗等待运行结束弹窗自动消失
上一篇:
微信小程序ssm电影院售票系统app