cli icon indicating copy to clipboard operation
cli copied to clipboard

"shoutem install" fails with error "Unexpected token < in JSON at position 0"

Open johnlee368 opened this issue 4 years ago • 0 comments

Followed this step: Screen Shot 2020-12-16 at 12 07 09 PM

Got this error:

MacBook-Air-2:john-lee.restaurants john$ shoutem install
? Select your app STMSS (177725)
Unexpected token < in JSON at position 0
(node:45625) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Use shoutem last-error for more information.
MacBook-Air-2:john-lee.restaurants john$ shoutem last-error
stack: 
  """
    SyntaxError: Unexpected token < in JSON at position 0
        at JSON.parse (<anonymous>)
        at execute (/usr/local/lib/node_modules/@shoutem/cli/src/clients/json-api-client.js:45:21)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at getExtension (/usr/local/lib/node_modules/@shoutem/cli/src/clients/extension-manager.js:55:10)
        at Object.getExtensionId (/usr/local/lib/node_modules/@shoutem/cli/src/clients/extension-manager.js:48:18)
        at installLocalExtension (/usr/local/lib/node_modules/@shoutem/cli/src/commands/install.js:55:23)
        at Object.handler (/usr/local/lib/node_modules/@shoutem/cli/src/cli/install.js:47:5)
  """
message: Unexpected token < in JSON at position 0

But did see custom extension in Builder and was able to manually install to my test app

johnlee368 avatar Dec 16 '20 17:12 johnlee368