简体   繁体   English

更新preload-js 0.6.3的npm软件包,但文件中的版本仍显示0.4.1

[英]Updating npm package of preload-js 0.6.3 but still the version inside file showing 0.4.1

I'm working in node environment. 我在节点环境中工作。 I have installed preload-js node modules from https://www.npmjs.com/package/preload-js . 我已经从https://www.npmjs.com/package/preload-js安装了preload-js节点模块。 The displaying version is 0.6.3. 显示版本为0.6.3。 The package.json is also showing the same version. package.json也显示了相同的版本。

  "preload-js": "^0.6.3",

But inside the actual file, node_modules\\preload-js\\index.js. 但是在实际文件中,为node_modules \\ preload-js \\ index.js。 It shows as follows (version="0.4.1") 它显示如下(version =“ 0.4.1”)

/*!
* @license PreloadJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
* Copyright (c) 2011-2013 gskinner.com, inc.
*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* This notice shall be included in all copies or substantial portions of the Software.
*/
window.createjs=window.createjs||{},function(){"use strict";var a=createjs.PreloadJS=createjs.PreloadJS||{};a.version="0.4.1",a.buildDate="Thu, 12 Dec 2013 23:33:38 GMT"}

In http://www.createjs.com/preloadjs , Version 0.6.2 is released by November 2015. How can I update? http://www.createjs.com/preloadjs中 ,版本0.6.2将于2015年11月发布。如何更新? I have tried npm update process but no luck. 我已经尝试过npm更新过程,但是没有运气。

Thanks in advance. 提前致谢。

a.version="0.4.1" do not specify the version of "preload-js". a.version =“ 0.4.1”未指定“ preload-js”的版本。 Check the "version" field inside package.json instead. 请改为检查package.json内的“版本”字段。

There is something wrong with preload-js installed by npm.You can build it v0.6.2 by yourself.Here is the steps . npm安装的preload-js出了问题。您可以自己构建v0.6.2。这是步骤

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

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