Click here to Skip to main content
15,791,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
One of our application uses highcharts node export server, so while npm install there are few questions asked as below

Agree to the license terms? y/n:  (no) y
Select your Highcharts version (e.g. 4.2.2)::  (latest)
Include Maps? (requires Maps license):  (no)
Include Gantt? (requires Gantt license, and >V6.2):  (no)
Enable styled mode? (requires Highcharts/Highstock 5+ license):  (no)
Include moment.js for date/time handling?:  (no)
Which CDN would you like to use?:  (
Enable wordcloud support? y/n:  (no)
Enable annotations support? y/n:  (no)

We are planning to have a continuous integration of that application using team city, is there any way to automate questions asked while npm install?

What I have tried:

I am unable to find a way to automate this in TC
Updated 29-Jul-19 2:36am
[no name] 27-Jul-19 16:04pm    
[no name] 27-Jul-19 16:05pm    
[no name] 27-Jul-19 16:06pm    

1 solution

I found a solution for it, hope this is helpful for whoever needs

Create a text file say Input.txt - This will have all the answers for the questions asked
Command while npm install should be
npm install <
Ex: npm install < Input.txt

When ever there is any question in cmd, it will take the corresponding values from the text file

Please note: Extra enter at the end of the file needs to be there
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900