Update the versions on your dependencies to be a little more flexible, adding the ~ in front of your versions.

package.json

{
  "name": "My Awesome Node App",
  "version": "1",
  "dependencies": {
    "connect": "2.2.1",
    "underscore": "1.3.3"
  }
}

 

Answer:

{
  "name": "My Awesome Node App",
  "version": "1",
  "dependencies": {
    "connect": "~2.2.1",
    "underscore": "~1.3.3"
  }
}

//~2.2.1 --> >=2.2.1 > 2.3.0
//~2.2 --> >=2.2 < 3.0.0
//~2 --> >=2 < 3.0.0

 

相关文章:

  • 2021-06-21
  • 2022-02-11
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
  • 2021-08-13
  • 2021-12-25
猜你喜欢
  • 2021-06-02
  • 2022-02-26
  • 2022-12-23
  • 2021-10-06
  • 2021-09-03
  • 2021-11-01
  • 2021-06-12
相关资源
相似解决方案