简体   繁体   English

'npm install bones'安装旧版本的下划线

[英]'npm install bones' installs old version of the underscore

Can you please help me out with somewhat mysterious behavior of the npm install functionality. 您能帮我解决一下npm安装功能的某些神秘行为吗? 'Npm install bones' installs old version of the underscore (1.1.7) instead of 1.4.2. “ Npm install bones”将安装旧版本的下划线(1.1.7),而不是1.4.2。 The problem is that the old version contains several bugs which are causing problems in my code. 问题是旧版本包含几个导致我的代码出现问题的错误。

'npm install underscore' in the bones directory does the same, while it installs the correct version outside of this directory. bones目录中的“ npm install underscore”执行相同的操作,但会在此目录之外安装正确的版本。 According to the official specification for bones install (https://npmjs.org/package/bones), the new version should be installed. 根据骨头安装的官方规范(https://npmjs.org/package/bones),应安装新版本。

Any ideas how to overcome this? 任何想法如何克服这个? I can just do a git clone, but I am trying to avoid this. 我可以做一个git clone,但是我想避免这种情况。

Thanks 谢谢

bones package.json has "underscore": "~1.3.3", in the repo (not sure what published version has) 在仓库中,骨头包.json的"underscore": "~1.3.3", (不确定发布的版本)

it will only go to the highest 1.3 version, not 1.4 but since you're only seeing 1.1 then maybe you need to run npm update . 它将仅使用最高的1.3版本,而不是1.4,但是由于您仅看到1.1,因此可能需要运行npm update

https://github.com/developmentseed/bones/blob/master/package.json https://github.com/developmentseed/bones/blob/master/package.json

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM