Невозможно перейти на более раннюю версию jquery в laravel - PullRequest
0 голосов
/ 09 июля 2020

Я хочу понизить версию jquery с 3.5.0 до 3.4.1, я пытался изменить его в файле package. json, но он показывает ту же версию 3.5.0. Моя bootstrap отзывчивая панель навигации не работает с этой версией

После выполнения команды npm install она переходит к 3.5.1, а в консоли веб-страницы отображается 3.5.0

"dependencies": {
        "admin-lte": "^3.0.5",
        "jquery": "^3.5.1"
    }

Пробовал это решение, но не работало Как понизить версию jquery в Laravel

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:

1 Ответ

0 голосов
/ 09 июля 2020

Просто удалите папку

  • node_modules
  • package-lock. json file

в приложении laravel, установите jquery на "jquery": "3.4.1" и запустить npm install && npm run dev

...