-
-
Notifications
You must be signed in to change notification settings - Fork 197
Error: spawn E2BIG #2561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I experienced the same issue. The result of |
I solved my issue by removing the |
@rLoka, @silveirado can you provide steps to reproduce and the version of cli you're using? |
@Plamen5kov I updated from 2.0.0 to 2.5.0 and that is what happened. I am on Ubuntu 16.10. |
Thank you @rLoka, I managed to reproduce the problem and will investigate. |
You can't have nativescript as a dependency, if you're going to install it locally, install it as a devDependency or even better use it globally. to fix your issue:
|
Steps to reproduce this issue:
Result:
I know that the |
@silveirado thank you, for the detailed steps to reproduce. It's a node restriction on the size of arguments you can call it with, we'll fix it as soon as possible. |
As mentioned above - the problem arises from passing arguments of length greater, than that allowed by the OS, when spawning a new process. This is, as seen from the provided logs, a result of traversing cyclic production dependencies. The prepare step during build also slows up dramatically. The script that is ran in node is responsible for checking whether any of the installed application plugins has declared dependency on the public v8 API, so that we may determine whether to distribute optimized (lower package size), or the regular runtime package. We can currently address the E2BIG/ENAMETOOLONG (Win) problem by defaulting to using the If and when the changes
|
Merged PR #2604 so that the prepare process no longer terminates if passing too many arguments (a result of bad dependency tree) to a new node process. If the above error is caught then the runtime will fallback to the default optimized (stripped v8 symbols table) android runtime without checking whether any of the nativescript plugins depend on v8. |
Running on Ubuntu 16.10, while I did not have such problems with NS 2.0.0
The text was updated successfully, but these errors were encountered: