Code Monkey home page Code Monkey logo

Comments (8)

Jei avatar Jei commented on May 24, 2024 1

@caspahouzer How did you solve this problem? I'm having the same issue with:
node 8.9.3
appc 6.2.4
titanium CLI 5.0.14

The command appc info -o json fails with a similar error as the one in #68 and here:
Unexpected token R in JSON at position 0

from pulsar-titanium.

chrisbowley avatar chrisbowley commented on May 24, 2024

@caspahouzer do you have appc CLI installed? If so which version of appc and Titanium are you running? Do you get a valid output if you run appc info -o json?

from pulsar-titanium.

m1ga avatar m1ga commented on May 24, 2024

The appc command will output errors before the json. With node 7 you'll get this as a result

Copyright (c) 2014-2017, Appcelerator, Inc.  All Rights Reserved.

ERROR: appc requires Node.js >=8.0.0
Visit http://nodejs.org/ to download a newer version.

and then JSON.parse of course can't parse it. That also results in #65

from pulsar-titanium.

caspahouzer avatar caspahouzer commented on May 24, 2024

That did the trick. Thank you

from pulsar-titanium.

federicopolesello avatar federicopolesello commented on May 24, 2024

@caspahouzer I have the same issue of @Jei
node v8.9.4
appc 7.0.2
titanium CLI 5.0.14

from pulsar-titanium.

m1ga avatar m1ga commented on May 24, 2024

@Jei what does appc info without the JSON output print out? It looks like there is an error that can't be parsed as a JSON

from pulsar-titanium.

Jei avatar Jei commented on May 24, 2024

@m1ga It does. I also updated the Appcelerator CLI version to 7.0.2 just to be sure.
The complete output is:

╰─$ appc info                                                                                                                                                                                                                          
Appcelerator Command-Line Interface, version 7.0.2
Copyright (c) 2014-2018, Appcelerator, Inc.  All Rights Reserved.

An uncaught exception was thrown!
Unexpected token R in JSON at position 0
Unexpected token R in JSON at position 0

from pulsar-titanium.

m1ga avatar m1ga commented on May 24, 2024

Then it looks like an appc problem and not related to the plugin. The plugin just tries to parse the output and since the JSON is broken it won't work. But the real error is inside your CLI somewhere.

Edit:
and just to check: try ti info please to see if that is broken too

from pulsar-titanium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.