2016-12-23 82 views
0

我試圖在Appcelerator工作室上創建新的移動應用程序項目,但未成功。詳細錯誤是找不到模塊'spawn-sync'。我錯過了什麼?請看日誌並給我一些建議。無法找到模塊'spawn-sync'Appcelerator工作室

[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    [email protected] 
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 

回答

0
在我的情況

我解決Appcelerator的工作室的問題,刪除配置文件夾,在Mac OS是在個人資料的隱藏文件夾(〜/ Appcelerator的)。 最好的問候。

3

對於我來說,當我在Mac OS中將Appcelerator CLI升級到6.2.3時,我遇到了同樣的麻煩。我所做的是,我手動爲appcelerator安裝了節點模塊spawn-sync。請注意,這不是全球安裝。

ie;我去了路徑/Users/{username}/.appcelerator/install/6.2.3/package/ 然後運行命令npm install spawn-sync

這解決了我的問題。

您可以嘗試導航到/Users/{username}/.appcelerator/install/{cli-version}/package/