Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

SyntaxError: Unexpected token #87

Closed
AyraHikari opened this issue Aug 7, 2019 · 1 comment
Closed

SyntaxError: Unexpected token #87

AyraHikari opened this issue Aug 7, 2019 · 1 comment

Comments

@AyraHikari
Copy link

AyraHikari commented Aug 7, 2019

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

@AyraHikari
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant