package.json指定库的版本

时间:2019-11-25 05:37:35

标签: npm package

我们的package.json中有以下要求,

"three-orbitcontrols": "^2.102.2"

在一台计算机上,node_modules/three-orbigcontrols/package.json拥有

   "_from": "three-orbitcontrols@2.102.2",
   "_id": "three-orbitcontrols@2.102.2",

在另一台计算机上

   "_from": "three-orbitcontrols@2.102.2",
   "_id": "three-orbitcontrols@2.110.1",

因此,指定^2.102.2不会强制版本(已安装2.110.1`

指定特定的2.102.2的正确方法是什么?

0 个答案:

没有答案