Click here to Skip to main content
14,297,293 members
Rate this:
Please Sign up or sign in to vote.
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?:  (https://code.highcharts.com/)
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
Posted
Updated 29-Jul-19 1:36am
Comments
umitmax 27-Jul-19 16:04pm
   
kmömö
umitmax 27-Jul-19 16:05pm
   
bnjkjhmljgjkşgjilhj
umitmax 27-Jul-19 16:06pm
   
nbbn

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 2

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
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100