hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.19k stars 4.82k forks source link

Hexo command not found after hexo-deployer to github.io deployment and exit. #1403

Closed jjeynon closed 9 years ago

jjeynon commented 9 years ago

Since deploying my initial hexo site to github.io which I did through building a VM droplet and hexo-deployer, I now want to go back and make updates with hexo generate. I powered on the VM droplet and edited the changes required to the /source/_ports, then going to run any hexo commands I keep finding: command not found.

Having used the hexo-deployer build, my location of the _config.yml and source files are:

[jeynon@hexo4git my-hexo-website]$ pwd
/home/jeynon/node_modules/hexo-deployer-git/my-hexo-website

I'm not too familiar with npm, but I checked and upgraded anyway although it didn't fix the issue,

[jeynon@hexo4git my-hexo-website]$ npm install -g npm 
/home/jeynon/.nvm/v0.10.40/bin/npm -> /home/jeynon/.nvm/v0.10.40/lib/node_modules/npm/bin/npm-cli.js
npm@2.13.1 /home/jeynon/.nvm/v0.10.40/lib/node_modules/npm

And ls of /home/jeynon/node_modules/hexo-deployer-git/my-hexo-website prints:

[jeynon@hexo4git my-hexo-website]$ ls -la
total 100
drwxrwxr-x.  9 jeynon jeynon  4096 Jul 20 08:42 .
drwxrwxr-x.  5 jeynon jeynon  4096 Jul  8 16:56 ..
drwxrwxr-x. 10 jeynon jeynon  4096 Jul 11 15:43 .deploy_git
drwxrwxr-x.  8 jeynon jeynon  4096 Jul 11 13:57 .git
-rw-rw-r--.  1 jeynon jeynon    65 Jul  8 16:56 .gitignore
-rw-rw-r--.  1 jeynon jeynon     0 Jul  8 17:01 README.md
-rw-rw-r--.  1 jeynon jeynon  1596 Jul 11 14:49 _config.yml
-rw-rw-r--.  1 jeynon jeynon 48995 Jul 11 15:43 db.json
drwxrwxr-x. 18 jeynon jeynon  4096 Jul 11 14:59 node_modules
-rw-rw-r--.  1 jeynon jeynon  2751 Jul 20 08:42 npm-debug.log
-rw-rw-r--.  1 jeynon jeynon   673 Jul 11 14:59 package.json
drwxrwxr-x.  9 jeynon jeynon  4096 Jul 11 15:40 public
drwxrwxr-x.  2 jeynon jeynon  4096 Jul  8 16:56 scaffolds
drwxrwxr-x.  3 jeynon jeynon  4096 Jul  8 16:56 source
drwxrwxr-x.  3 jeynon jeynon  4096 Jul  8 16:56 themes

[jeynon@hexo4git my-hexo-website]$ hexo server
-bash: hexo: command not found

[jeynon@hexo4git my-hexo-website]$ hexo
-bash: hexo: command not found
leesei commented 9 years ago

npm install -g hexo-cli first.

leesei commented 9 years ago

Please open new issue if the problem persists with latest build.