找不到模块'spawn-sync'Appcelerator工作室

时间:2016-12-23 02:59:04

标签: appcelerator

我尝试在Appcelerator工作室上创建新的移动应用程序项目,但未成功。详细错误是无法找到模块'spawn-sync'。我错过了什么。请查看日志并给我一些建议。

[2016/12/23 10:16:24] Thanh Long: The following data will be sent:

------
STATUS
------
pluginId            com.appcelerator.titanium.360.core
pluginVersion       1.1.0.1470644237
code                0
severity            4
message             (Build 4.8.1.201612050850) [ERROR]  An uncaught exception was thrown!
Cannot find module 'spawn-sync'
fingerprint         fecf93da
stacktrace          

Caused by: Exception:org.eclipse.core.runtime.CoreException: An uncaught exception was thrown!
Cannot find module 'spawn-sync'
     at com.appcelerator.titanium.core.user.TitaniumUserManager.callAPI(TitaniumUserManager.java:228)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.doGetOrganization(ThreeSixtyProject.java:153)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.getOrganization(ThreeSixtyProject.java:127)
     at com.appcelerator.titanium360.internal.ui.launch.OnDemandPlansLaunchValidator.preLaunchCheck(OnDemandPlansLaunchValidator.java:57)
     at com.appcelerator.titanium.ui.launching.AbstractPackagingLaunchShortcut.preLaunchCheck(AbstractPackagingLaunchShortcut.java:65)
     at com.appcelerator.titanium.ui.launching.AbstractTitaniumLaunchShortcut.launch(AbstractTitaniumLaunchShortcut.java:54)
     at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:431)
     at com.appcelerator.titanium.ui.LaunchAppToolbarContribution$4.mouseUp(LaunchAppToolbarContribution.java:490)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
     at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
org.eclipse.core.runtime.CoreException: An uncaught exception was thrown!
Cannot find module 'spawn-sync'
     at com.appcelerator.titanium.core.user.TitaniumUserManager.handleResponse(TitaniumUserManager.java:277)
     at com.appcelerator.titanium.core.user.TitaniumUserManager.callAPI(TitaniumUserManager.java:224)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.doGetOrganization(ThreeSixtyProject.java:153)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.getOrganization(ThreeSixtyProject.java:127)
     at com.appcelerator.titanium360.internal.ui.launch.OnDemandPlansLaunchValidator.preLaunchCheck(OnDemandPlansLaunchValidator.java:57)
     at com.appcelerator.titanium.ui.launching.AbstractPackagingLaunchShortcut.preLaunchCheck(AbstractPackagingLaunchShortcut.java:65)
     at com.appcelerator.titanium.ui.launching.AbstractTitaniumLaunchShortcut.launch(AbstractTitaniumLaunchShortcut.java:54)
     at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:431)
     at com.appcelerator.titanium.ui.LaunchAppToolbarContribution$4.mouseUp(LaunchAppToolbarContribution.java:490)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
     at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

------
STATUS
------
pluginId            com.appcelerator.titanium.core
pluginVersion       3.1.2.1478890706
code                0
severity            4
message             An uncaught exception was thrown!
Cannot find module 'spawn-sync' [detached from CoreException of Status '(Build 4.8.1.201612050850) [ERROR]  An uncaught exception was thrown!
Cannot find module 'spawn-sync'' by Error Reporting]
fingerprint         a663234c
stacktrace
[2016/12/23 10:16:58] Thanh Long: Exception:org.eclipse.core.runtime.CoreException: An uncaught exception was thrown!
Cannot find module 'spawn-sync'
     at com.appcelerator.titanium.core.user.TitaniumUserManager.callAPI(TitaniumUserManager.java:228)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.doGetOrganization(ThreeSixtyProject.java:153)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.getOrganization(ThreeSixtyProject.java:127)
     at com.appcelerator.titanium360.internal.ui.launch.OnDemandPlansLaunchValidator.preLaunchCheck(OnDemandPlansLaunchValidator.java:57)
     at com.appcelerator.titanium.ui.launching.AbstractPackagingLaunchShortcut.preLaunchCheck(AbstractPackagingLaunchShortcut.java:65)
     at com.appcelerator.titanium.ui.launching.AbstractTitaniumLaunchShortcut.launch(AbstractTitaniumLaunchShortcut.java:54)
     at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:431)
     at com.appcelerator.titanium.ui.LaunchAppToolbarContribution$4.mouseUp(LaunchAppToolbarContribution.java:490)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
     at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
org.eclipse.core.runtime.CoreException: An uncaught exception was thrown!
Cannot find module 'spawn-sync'
     at com.appcelerator.titanium.core.user.TitaniumUserManager.handleResponse(TitaniumUserManager.java:277)
     at com.appcelerator.titanium.core.user.TitaniumUserManager.callAPI(TitaniumUserManager.java:224)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.doGetOrganization(ThreeSixtyProject.java:153)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.getOrganization(ThreeSixtyProject.java:127)
     at com.appcelerator.titanium360.internal.ui.launch.OnDemandPlansLaunchValidator.preLaunchCheck(OnDemandPlansLaunchValidator.java:57)
     at com.appcelerator.titanium.ui.launching.AbstractPackagingLaunchShortcut.preLaunchCheck(AbstractPackagingLaunchShortcut.java:65)
     at com.appcelerator.titanium.ui.launching.AbstractTitaniumLaunchShortcut.launch(AbstractTitaniumLaunchShortcut.java:54)
     at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:431)
     at com.appcelerator.titanium.ui.LaunchAppToolbarContribution$4.mouseUp(LaunchAppToolbarContribution.java:490)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
     at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
[2016/12/23 10:17:00] Thanh Long: at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Exception:org.eclipse.core.runtime.CoreException: An uncaught exception was thrown!
Cannot find module 'spawn-sync'
     at com.appcelerator.titanium.core.user.TitaniumUserManager.handleResponse(TitaniumUserManager.java:277)
     at com.appcelerator.titanium.core.user.TitaniumUserManager.callAPI(TitaniumUserManager.java:224)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.doGetOrganization(ThreeSixtyProject.java:153)
     at com.appcelerator.titanium.core.user.ThreeSixtyProject.getOrganization(ThreeSixtyProject.java:127)
     at com.appcelerator.titanium360.internal.ui.launch.OnDemandPlansLaunchValidator.preLaunchCheck(OnDemandPlansLaunchValidator.java:57)
     at com.appcelerator.titanium.ui.launching.AbstractPackagingLaunchShortcut.preLaunchCheck(AbstractPackagingLaunchShortcut.java:65)
     at com.appcelerator.titanium.ui.launching.AbstractTitaniumLaunchShortcut.launch(AbstractTitaniumLaunchShortcut.java:54)
     at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:431)
     at com.appcelerator.titanium.ui.LaunchAppToolbarContribution$4.mouseUp(LaunchAppToolbarContribution.java:490)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
     at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
     at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:606)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

------
STATUS
------
pluginId            com.appcelerator.titanium.core
pluginVersion       3.1.2.1478890706
code                0
severity            1
message             An uncaught exception was thrown!
Cannot find module 'spawn-sync' [detached from CoreException of Status 'An uncaught exception was thrown!
Cannot find module 'spawn-sync'' by Error Reporting]
fingerprint         00000000
stacktrace          


------
REPORT
------
name                trinh.thanh.long@nck.co.jp
email               anonymous
comment             
productVersion      4.8.1.201612050850
productName         Appcelerator Studio
javaRuntimeVersion  1.7.0_79-b15
osgiWs              cocoa
osgiOs              MacOSX
osgiOsVersion       10.12.2
osgiArch            x86_64

2 个答案:

答案 0 :(得分:4)

对我来说,当我在Mac OS中将Appcelerator CLI升级到6.2.3时,我遇到了同样的麻烦。我做的是,我为appcelerator手动安装了节点模块spawn-sync。请注意,它不是全球安装。

即;我去了路径/Users/{username}/.appcelerator/install/6.2.3/package/ 然后运行命令npm install spawn-sync

这解决了我的问题。

您可以尝试导航到/Users/{username}/.appcelerator/install/{cli-version}/package/

答案 1 :(得分:1)

在我的情况下我解决了删除Appcelerator Studio的配置文件夹的问题,在Mac OS中是个人配置文件中的隐藏文件夹(〜。/ appcelerator)。 最诚挚的问候。