Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

0

The following error appeared:

  

Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

How can I update my version of jquery to a specific version? since he asks me for a more current version. I wanted to change the package.json file directly but I can not find the jquery version.

this is my json file:

{
  "name": "bonafont",
  "private": true,
  "scripts": {
    "start": "meteor run"
  },
  "dependencies": {
    "animate.css": "^3.5.2",
    "babel-runtime": "^6.20.0",
    "bootstrap": "^4.0.0-alpha.6",
    "hammerjs": "^2.0.8",
    "headroom.js": "^0.9.4",
    "mdbootstrap": "^4.4.3",
    "mdbreact": "^4.0.0",
    "meteor-node-stubs": "~0.2.4",
    "rc-dropdown": "^2.0.1",
    "rc-menu": "^6.0.3",
    "react": "^15.6.1",
    "react-animate-on-scroll": "^1.3.2",
    "react-bootstrap": "^0.31.5",
    "react-dd-menu": "^2.0.2",
    "react-dom": "^15.6.1",
    "react-dropdown": "^1.3.2",
    "react-headrooms": "^1.0.6",
    "react-reveal": "^0.7.3",
    "react-router": "^3.0.0",
    "react-spark-scroll": "^4.0.0",
    "react-spark-scroll-gsap": "^4.0.0",
    "react-springy-parallax": "^1.0.11",
    "react-sticky": "^6.0.1",
    "react-sticky-header": "^0.1.9",
    "react-toggle-display": "^2.2.0",
    "react-transition-group": "^2.2.1",
    "reactstrap": "^4.8.0",
    "scrollmagic": "^2.0.5",
    "sweetalert": "^2.0.3",
    "tether": "^1.4.0"
  }
}
    
asked by Gerardo Bautista 07.11.2017 в 22:27
source

1 answer

0

What you can do is using npm to use the following line:

npm install <package>@<version>

In any case it would be:

npm install <jquery>@<2.2.4>

Be sure to delete the version you currently have from jquery, install that specific version, and save it in the dependency. You should know that entering at the end the -save is automatically saved in your package.json.

    
answered by 07.11.2017 в 22:51