cli
cli copied to clipboard
"shoutem install" fails with error "Unexpected token < in JSON at position 0"
Followed this step:

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