0

我在节点环境中工作。我已经从https://www.npmjs.com/package/preload-js安装了 preload-js 节点模块。显示版本为 0.6.3。package.json 也显示相同的版本。

  "preload-js": "^0.6.3",

但在实际文件中,node_modules\preload-js\index.js。显示如下(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"}

http://www.createjs.com/preloadjs,版本 0.6.2 于 2015 年 11 月发布。如何更新?我已经尝试过 npm 更新过程,但没有运气。

提前致谢。

4

1 回答 1

0

a.version="0.4.1" 不指定“preload-js”的版本。改为检查 package.json 中的“版本”字段。

npm安装的preload-js有问题,可以自己搭建v0.6.2,步骤如下。

于 2017-02-03T02:48:18.670 回答