Closed arthurwoo closed 11 years ago
當然。
npm update -g
更新完了generate出错 是我哪里弄错了吗?
$ hexo generate [info] Files loaded in 0.644s [error] HexoError: Render failed: css/style.css ParseError: e:\myBlog\hexo\themes\light\source\css_base\variable.styl:14 10| font-serif = "Georgia", serif 11| font-mono = Monaco, Menlo, Consolas, Courier New, monospace 12| font-title = "Lato", Helvetica Neue, Helvetica, Arial, sans-serif 13|
14| @import url(//fonts.googleapis.com/css?family=Lato:400,400italic) 15| 16| font-icon = FontAwesome 17| font-icon-path = 'font/fontawesome-webfont'
expected ")", got "space"
at Parser.error (e:\Program Files\nodejs\node_modules\hexo\node_modules\styl
us\lib\parser.js:166:11) at Parser.expect (e:\Program Files\nodejs\node_modules\hexo\node_modules\sty lus\lib\parser.js:194:12) at Parser.url (e:\Program Files\nodejs\node_modules\hexo\node_modules\stylus \lib\parser.js:1227:10) at Parser.functionCall (e:\Program Files\nodejs\node_modules\hexo\node_modul es\stylus\lib\parser.js:1237:52) at Parser.primary (e:\Program Files\nodejs\node_modules\hexo\node_modules\st ylus\lib\parser.js:1611:21) at Parser.subscript (e:\Program Files\nodejs\node_modules\hexo\node_modules\ stylus\lib\parser.js:1561:21) at Parser.unary (e:\Program Files\nodejs\node_modules\hexo\node_modules\styl us\lib\parser.js:1552:17) at Parser.defined (e:\Program Files\nodejs\node_modules\hexo\node_modules\st ylus\lib\parser.js:1526:21) at Parser.multiplicative (e:\Program Files\nodejs\node_modules\hexo\node_mod ules\stylus\lib\parser.js:1500:21) at Parser.additive (e:\Program Files\nodejs\node_modules\hexo\node_modules\s tylus\lib\parser.js:1485:21)
請更新主題。
$ git clone https://github.com/tommy351/hexo-theme-light themes/light
这次换另一个错了 $ hexo generate [error] TypeError: Cannot call method 'load' of undefined TypeError: Cannot call method 'load' of undefined at module.exports (e:\Program Files\nodejs\node_modules\hexo\lib\plugins\con sole\generate\index.js:60:13) at e:\Program Files\nodejs\node_modules\hexo\lib\core.js:118:9 at b (domain.js:183:18) at Domain.run (domain.js:123:23) at Hexo.call (e:\Program Files\nodejs\node_modules\hexo\lib\core.js:117:9) at e:\Program Files\nodejs\node_modules\hexo\lib\init.js:262:10 at e:\Program Files\nodejs\node_modules\hexo\node_modules\async\lib\async.js :422:17 at e:\Program Files\nodejs\node_modules\hexo\node_modules\async\lib\async.js :416:17 at Array.forEach (native) at _each (e:\Program Files\nodejs\node_modules\hexo\node_modules\async\lib\a sync.js:32:24)
好了 刚才是我弄错了 感谢!
今天升级以后出现了这样的问题: hexo g、hexo s 都是 ,只有clean能够执行成功,请问是什么问题导致的呢?我也升级了我使用的主题,但是还是没有成功。
[error] { name: 'HexoError', reason: 'incomplete explicit mapping pair; a key node is missed', mark: { name: null, buffer: 'categories: Kategorien\nsearch: Suche\ntags: Tags\ntagcloud: Tag-C loud\ntweets: Tweets\nprev: Vorherige Seite\nnext: Nächste Seite\ncomment: Komm entare\narchive_a: Archiv\narchive_b: Archiv: %s\npage: Seite %d\nrecent_posts: Neueste Artikel\n\u0000', position: 180, line: 9, column: 17 }, message: 'Process failed: languages/de.yml', domain: { domain: null, _events: { error: [Function] }, _maxListeners: 10, members: [ [Object] ] }, domainThrown: true, stack: undefined }
我这边也出现了楼上这位老兄出现的问题,下面是错误代码: [error] { name: 'HexoError', reason: 'incomplete explicit mapping pair; a key node is missed', mark: { name: null, buffer: 'categories: Categories\nsearch: Search\ntags: Tags\ntagcloud: Tag Cloud\nprev: Prev\nnext: Next\ncomment: Comments\ncontents: Contents\narchive_a: Archives\narchive_b: Archives: %s\npage: Page %d\nrecent_posts: Recent Posts\nmenu: Menu\nlinks: Links\nrss: RSS\nshowsidebar: Show Sidebar\nhidesidebar: Hide Sidebar\nupdated: Updated\n\u0000', position: 167, line: 9, column: 19 }, message: 'Process failed: languages/default.yml', domain: { domain: null, _events: { error: [Function] }, _maxListeners: 10, members: [ [Object] ] }, domainThrown: true, stack: undefined }
我想从3.0升级到3.0.1(mac上使用),能否指导一下具体的更新版本的操作?
@tufu9441 在你有package.json
的目錄npm update
就可以了
npm ls --depth=0
可以檢查dependency 的版本號
还是npm安装吗?