[AC-4689] spawn-sync
| GitHub Issue | n/a |
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2017-01-02T16:40:09.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Daniel Ethier |
| Assignee | Shak Hossain |
| Created | 2016-12-22T02:28:23.000+0000 |
| Updated | 2018-07-30T16:52:58.000+0000 |
Description
Steps to Reproduce
Just building a project with 6.0.1 that has always worked before.
Actual Result
Project will not build ... Cannot find module spawn-sync
Expected Result
If you need a module why don't you install it yourself so I don't need to spend hours and hours on Google trying to figure this crap out. Every time you update you break something like this.
Attachments
Hey Daniel, first of all, I cannot reproduce this issue using 6.0.1.GA and CLI 6.1.0. Besides that, the error looks related to the 6.1.0 CLI, not the SDK. Our team will investigate it anyway, thx!
I got it working by uninstalling Node and installing 6.9.2 using the Mac OS X installer package. Then I was able to install spawn-sync using npm. But why was spawn-sync not installed by your updater if it was needed? Perhaps it needs to do some version checks on node and npm to make sure everything it needs is present? I never used to have these problems when updating.
The recommended NodeJS version is 4.6.x (see the [Compatibility Matrix](http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_Compatibility_Matrix)), so that could also has been the problem. Later NodeJS versions will be supported in future releases.
[~sdarda], I believe the Compatibility Matrix document is up to date as Hans mentioned.