I am running an Ionic 3 project using Docker, but I encountered the following issue when executing commands inside the container:
The Ionic CLI has an update available (3.20.0 => 5.4.16)! Would you like to install it? No
Not automatically updating your CLI
Since this prompt requires manual confirmation (Y/N), it prevents the Docker container from running smoothly. I need a way to disable this update notification properly in Ionic CLI 3.20.0 so that the container can execute commands without interruption.
What I Have Tried
- Running
npm install -g ionic@3.20.0
before executing other commands inside the container - Using environment variables like
IONIC_CLI_DISABLE_UPDATE_CHECK
(but it seems unsupported in this version) - Checking Ionic CLI config files for an option to disable update checks
Expected Solution
- A correct way to disable the update notification in Ionic CLI 3.20.0
- The solution must be Docker-compatible and should not require manual input
If anyone has encountered this issue and found a workaround, please share your insights. Thanks!