Skip to content

Conversation

@rosen-vladimirov
Copy link
Contributor

Whenever CLI spawns npm install <smth>, we do not set stdin and stdout
of the spawned process. This way in case any of the npm scripts executed
during install requires input from user, it cannot be handled in any
way.

So pass the current stdin and stdout to the spawned npm process. This
way in case a postinstall script is executed and it requires input from
user, the users will be able to enter required information in the same
place where tns command has been executed (same terminal).

This fixes postinstall execution of nativescript-plugin-firebase. Fixes #2521

Whenever CLI spawns `npm install <smth>`, we do not set stdin and stdout
of the spawned process. This way in case any of the npm scripts executed
during install requires input from user, it cannot be handled in any
way.

So pass the current stdin and stdout to the spawned npm process. This
way in case a postinstall script is executed and it requires input from
user, the users will be able to enter required information in the same
place where `tns` command has been executed (same terminal).

This fixes postinstall execution of `nativescript-plugin-firebase`.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/fix-plugins-installation branch from a3b9bbc to 8517b71 Compare February 12, 2017 18:08
@rosen-vladimirov rosen-vladimirov merged commit c5ec493 into release Feb 13, 2017
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-plugins-installation branch February 13, 2017 06:53
@EddyVerbruggen
Copy link
Contributor

THANKS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants