我想将jQuery版本从3.5.0降级到3.4.1,我尝试在package.json文件中更改它,但它显示相同的3.5.0版本。我的引导响应导航栏不适用于此版本
运行npm install命令后,它转到3.5.1,在网页控制台中显示3.5.0
"dependencies": {
"admin-lte": "^3.0.5",
"jquery": "^3.5.1"
}
尝试了这种解决方案,但不起作用
npm安装错误
$ npm install
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! Unexpected end of JSON input while parsing near '...uy5sAF7TiUYHSa25iamul'
npm ERR! A complete log of this run can be found in:
只需删除您的
在laravel应用程序中,将jQuery设置为"jQuery":"3.4.1"
并运行npm install