Skip to content
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

Skip CLI's postinstall in case it is not installed globally #4323

Closed
rosen-vladimirov opened this issue Jan 29, 2019 · 0 comments
Closed

Skip CLI's postinstall in case it is not installed globally #4323

rosen-vladimirov opened this issue Jan 29, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@rosen-vladimirov
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When using CLI as a library (i.e. it is declared as a devDependency of my project), every time when I delete node_modules and execute npm install, CLI prompts for enabling autocompletion and some other questions.

Describe the solution you'd like
When CLI is not installed globally, skip all questions.

Describe alternatives you've considered
Having an env flag that will disable these options.

Additional context
To reproduce just call npm install nativescript in any dir (NOTE: do not pass -g flag). CLI will prompt yo for some input.
Postinstall should be executed only when any of the following is executed:

npm i -g nativescript
npm install --global nativescript
yarn global add nativescript
npm i --global nativescript@<version>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants