jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.77k stars 299 forks source link

ERROR Plugin load failed: hexo-admin #19

Closed bluesky4485 closed 9 years ago

bluesky4485 commented 9 years ago

OS version:win8.1 x64 node version:0.12.0

npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

this works fine. but when npm install --save hexo-admin-plugin, then hexo server,I get the error : ERROR Plugin load failed: hexo-admin ReferenceError: hexo is not defined

why I got this error?

I install hexo-generator-feed plugin with the same error.

jaredly commented 9 years ago

What version of hexo is it? They may have changed things.

On 3:10AM, Sat, Feb 28, 2015 bluesky4485 notifications@github.com wrote:

OS version:win8 x64 node version:0.12.0

npm install hexo-cli -g hexo init blog cd blog npm install hexo server

this works fine. but when npm install --save hexo-admin-plugin, then hexo server,I get the error : ERROR Plugin load failed: hexo-admin ReferenceError: hexo is not defined

why I got this error?

I install hexo-generator-feed plugin with the same error.

— Reply to this email directly or view it on GitHub https://github.com/jaredly/hexo-admin/issues/19.

bluesky4485 commented 9 years ago

@jaredly hexo version: 3.0.0-rc.4 the hexo init blog get the newest hexo version,which is 3.0.0-rc.4.

By the way,what version hexo hexo-admin works fine ?

jaredly commented 9 years ago

Ah yes, I haven't updated this plugin for the new hexo release yet, sorry. My own blog is still on the 2.x release.

On 6:47PM, Sat, Feb 28, 2015 bluesky4485 notifications@github.com wrote:

@jaredly https://github.com/jaredly hexo version: 3.0.0-rc.4

— Reply to this email directly or view it on GitHub https://github.com/jaredly/hexo-admin/issues/19#issuecomment-76563292.

mzalazar commented 9 years ago

this does NOT working with version 3.0.0 :(

huangjihua commented 9 years ago

ReferenceError: hexo is not defined at Object. (L:\Workspaces\WebStormProject\hexo\node_modules\hexo-admin-plugin\update.js:4:10) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (L:\Workspaces\WebStormProject\hexo\node_modules\hexo-admin-plugin\api.js:4:14) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\lib\hexo\index.js:213:21) at L:\Workspaces\WebStormProject\hexo\node_modules\hexo-admin-plugin\index.js:7:11 at L:\Workspaces\WebStormProject\hexo\node_modules\hexo\lib\hexo\index.js:229:12 at tryCatcher (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\node_modules\bluebird\js\main\util.js:26:23) at Promise._settlePromiseFromHandler (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\node_modules\bluebird\js\main\promise.js:507:31) at Promise._settlePromiseAt (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\node_modules\bluebird\js\main\promise.js:581:18) at Promise._settlePromises (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\node_modules\bluebird\js\main\promise.js:697:14) at Async._drainQueue (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\node_modules\bluebird\js\main\async.js:123:16) at Async._drainQueues (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\node_modules\bluebird\js\main\async.js:133:10) at Async.drainQueues (L:\Workspaces\WebStormProject\hexo\node_modules\hexo\node_modules\bluebird\js\main\async.js:15:14) at process._tickCallback (node.js:415:13)

jaredly commented 9 years ago

@huangjihua what Hexo version, and what Hexo-admin version?

jaredly commented 9 years ago

Hexo-admin now works on Hexo version 3.x