Skip to content

Instantly share code, notes, and snippets.

@kaushalvivek
Created May 21, 2020 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaushalvivek/e1668f1c09512c4c5affc73559a2cd07 to your computer and use it in GitHub Desktop.
Save kaushalvivek/e1668f1c09512c4c5affc73559a2cd07 to your computer and use it in GitHub Desktop.
Deploying Hexo Without Node Error
#!/bin/bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm use 13.1.0
hexo generate
hexo clean
hexo deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment