Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"hyper" command produces: SyntaxError: Unexpected token = in JSON at position 1 #3145

Closed
2 tasks done
weshicks opened this issue Aug 1, 2018 · 3 comments
Closed
2 tasks done
Labels

Comments

@weshicks
Copy link

weshicks commented Aug 1, 2018

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

Hi! This morning I installed a fresh copy of hyper and tried to install the hyperocean theme, and was given the following error:

~ : hyper install hyperocean
undefined:1
{=true
 ^

SyntaxError: Unexpected token = in JSON at position 1
    at JSON.parse (<anonymous>)
    at exports.parse (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19275:17)
    at addConfigFile (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19230:20)
    at Array.forEach (<anonymous>)
    at module.exports (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19243:36)
    at module.exports (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19191:35)
    at Object.<anonymous> (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19102:45)
    at __webpack_require__ (/Applications/Hyper.app/Contents/Resources/bin/cli.js:20:30)
    at Object.<anonymous> (/Applications/Hyper.app/Contents/Resources/bin/cli.js:9914:13)
    at __webpack_require__ (/Applications/Hyper.app/Contents/Resources/bin/cli.js:20:30)

screen shot 2018-08-01 at 8 41 33 am

It seems that there's some issue with the bundled hyper command on my system, because no matter what I run with it, I get the same error:

~ : hyper --help
undefined:1
{=true
 ^

SyntaxError: Unexpected token = in JSON at position 1
    at JSON.parse (<anonymous>)
    at exports.parse (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19275:17)
    at addConfigFile (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19230:20)
    at Array.forEach (<anonymous>)
    at module.exports (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19243:36)
    at module.exports (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19191:35)
    at Object.<anonymous> (/Applications/Hyper.app/Contents/Resources/bin/cli.js:19102:45)
    at __webpack_require__ (/Applications/Hyper.app/Contents/Resources/bin/cli.js:20:30)
    at Object.<anonymous> (/Applications/Hyper.app/Contents/Resources/bin/cli.js:9914:13)
    at __webpack_require__ (/Applications/Hyper.app/Contents/Resources/bin/cli.js:20:30)

screen shot 2018-08-01 at 8 48 27 am

I searched for this issue in the issues backlog, and found a similar issue with the hyper command, but not exactly the same thing. Any ideas? (Apologies if this has already been documented as an issue, I searched but wasn't able to find the exact problem I'm having.)

@RichiRets
Copy link

Any updates?

@RichiRets
Copy link

I have this issue too

@LabhanshAgrawal
Copy link
Collaborator

Closing as this is for v2, please open a new issue if you face this in v3

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

No branches or pull requests

3 participants