当我运行npm install
时,我得到以下警告:
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: 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.
字符串
我的package.json
中没有har-validator
,而uuid
在我的软件包中设置为版本9。
为什么我会得到这个错误,以及如何修复这些?
"dependencies": {
"bcrypt": "^5.1.0",
"body-parser": "^1.20.1",
"colors": "^1.4.0",
"dateformat": "^4.6.3",
"dns-packet": "^5.4.0",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"joi": "^17.6.4",
"jsonwebtoken": "^9.0.0",
"mongodb": "^4.11.0",
"mqtt-packet": "^8.1.2",
"semver": "^7.5.4",
"uuid": "^9.0.0",
"ws": "^8.10.0"
},
"devDependencies": {
"eslint": "^8.24.0",
"grunt": "^1.5.3",
"grunt-contrib-compress": "^2.0.0",
"grunt-contrib-uglify": "^5.0.1",
"grunt-env": "^1.0.1",
"grunt-run": "^0.8.1",
"minimist": "^1.2.6",
"mocha": "^9.2.2",
"mocha.parallel": "^0.15.6",
"newman": "^6.0.0",
"nodemon": "^3.0.1",
"sinon": "^14.0.2"
}
型
1条答案
按热度按时间sr4lhrrt1#
感谢@jonrsharpe的评论,我发现这是纽曼造成的。
npm explain har-validator
:字符串
将纽曼安装到一个空的项目/文件夹中会出现完全相同的错误。
型