imfunniee / gitfolio

:octocat: personal website + blog for every github user

Home Page:https://imfunniee.github.io/gitfolio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: Unexpected token

AyraHikari opened this issue · comments

System Information
Name Value
OS Linux Ubuntu 16.04
Node Version v4.2.6
Project Version 4a28721
What is the current behavior? After install with `npm i gitfolio -g`, and then run `gitfolio build AyraHikari` i got this error
What is the expected behavior? Build this project
Logs
root@Ayra:~/gitfolio# gitfolio build AyraHikari
/root/gitfolio/build.js:9
const { updateHTML } = require('./populate');
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

Fixed, just update Nodejs to latest version.

curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nodejs

nodejs -v

v8.16.0