diff --git a/lib/plugins/helper/tagcloud.js b/lib/plugins/helper/tagcloud.js index 32eb569310..9fd5bda421 100644 --- a/lib/plugins/helper/tagcloud.js +++ b/lib/plugins/helper/tagcloud.js @@ -1,6 +1,6 @@ 'use strict'; -const Color = require('../../../node_modules/hexo-util/lib/color'); // eslint-disable-line node/no-unpublished-require +const Color = require('hexo-util').Color; function tagcloudHelper(tags, options) { if (!options && (!tags || !Object.prototype.hasOwnProperty.call(tags, 'length'))) { diff --git a/package.json b/package.json index e4e2f6145c..9589da7af0 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "hexo-fs": "^1.0.0", "hexo-i18n": "^0.2.1", "hexo-log": "^0.2.0", - "hexo-util": "^1.0.0", + "hexo-util": "^1.0.1", "js-yaml": "^3.12.0", "lodash": "^4.17.11", "micromatch": "^4.0.2",