diff --git a/packages/create-plugin/src/utils/utils.goSdk.ts b/packages/create-plugin/src/utils/utils.goSdk.ts index 32b91498a..c32b93643 100644 --- a/packages/create-plugin/src/utils/utils.goSdk.ts +++ b/packages/create-plugin/src/utils/utils.goSdk.ts @@ -71,8 +71,14 @@ function getLatestSdkVersion(exportPath: string): Promise { debug(error); reject(); } - const version = JSON.parse(stdout).Version; - resolve(version); + + try { + const version = JSON.parse(stdout).Version; + resolve(version); + } catch (e) { + debug(e); + reject(); + } }); }); }