{"id":1805,"date":"2017-08-18T16:56:01","date_gmt":"2017-08-18T08:56:01","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1805"},"modified":"2017-08-18T16:56:01","modified_gmt":"2017-08-18T08:56:01","slug":"%e8%a7%a3%e5%86%b3%e6%89%a7%e8%a1%8chexo%e5%91%bd%e4%bb%a4%e5%90%8e%e5%87%ba%e7%8e%b0bash-hexo-command-not-found%e9%94%99%e8%af%af%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1805","title":{"rendered":"\u89e3\u51b3\u6267\u884chexo\u547d\u4ee4\u540e\u51fa\u73b0bash: hexo: command not found\u9519\u8bef\u7684\u95ee\u9898"},"content":{"rendered":"<p>\n\t\u4eca\u5929\u6211\u5728\u5b89\u88c5\u5b8chexo\u540e\uff0c\u6267\u884chexo\u547d\u4ee4\uff0c\u51fa\u73b0\u4e86&ldquo;bash: hexo: command not found&rdquo;\u63d0\u793a\u3002\u7ecf\u8fc7\u67e5\u9605\u8d44\u6599\u5f97\u77e5\uff0c\u8fd9\u662f\u56e0\u4e3ahexo\u7684\u73af\u5883\u53d8\u91cf\u6ca1\u6709\u914d\u7f6e\u7684\u539f\u56e0\u3002\n<\/p>\n<h2>\n\t\u5b89\u88c5hexo<br \/>\n<\/h2>\n<pre class=\"brush:bash;\">\r\nnpm install -g hexo-cli<\/pre>\n<h2>\n\t\u6267\u884chexo<br \/>\n<\/h2>\n<pre class=\"brush:bash;\">\r\nhexo init D:\/hexo<\/pre>\n<p>\n\t\u51fa\u73b0&ldquo;bash: hexo: command not found&rdquo;\u63d0\u793a\u3002\n<\/p>\n<h2>\n\t\u89e3\u51b3\u529e\u6cd5<br \/>\n<\/h2>\n<p>\n\t\u627e\u5230C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\hexo\\bin\\\uff0c\u5c06\u6b64\u76ee\u5f55\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\u3002\n<\/p>\n<p>\n\t\u4e3a\u4e86\u4fdd\u9669\u4e00\u70b9\uff0c\u5efa\u8bae\u5728\u7cfb\u7edf\u53d8\u91cf\u4e2d\u7684path\u4e2d\u6dfb\u52a0\u3002\u7136\u540e\u9700\u8981\u5173\u95edGit Bash\u7a97\u53e3\uff0c\u91cd\u65b0\u6253\u5f00\u5373\u53ef\u3002\n<\/p>\n<p>\n\t\u8bb0\u4f4f\uff0c\u4e00\u5b9a\u8981\u5173\u95ed\uff0c\u5e76\u91cd\u65b0\u6253\u5f00\u547d\u4ee4\u7a97\u53e3\uff0c\u5426\u5219\u914d\u7f6e\u4e0d\u4f1a\u751f\u6548\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1805\">\u89e3\u51b3\u6267\u884chexo\u547d\u4ee4\u540e\u51fa\u73b0bash: hexo: command not found\u9519\u8bef\u7684\u95ee\u9898<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6211\u5728\u5b89\u88c5\u5b8chexo\u540e\uff0c\u6267\u884chexo\u547d\u4ee4\uff0c\u51fa\u73b0\u4e86&ldquo;bash: hexo: command not [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[1440,1438,1439,1433],"class_list":["post-1805","post","type-post","status-publish","format-standard","hentry","category-html5","category-yyzt","tag-bash","tag-git","tag-hexo","tag-npm"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1805"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1805\/revisions"}],"predecessor-version":[{"id":1806,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1805\/revisions\/1806"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}