alphagov / govuk-prototype-kit

Rapidly create HTML prototypes of GOV.UK services
https://prototype-kit.service.gov.uk
MIT License
306 stars 236 forks source link

Plugin install/update/uninstall process doesn't work if the kit changes from default port #1896

Closed joelanman closed 1 year ago

joelanman commented 1 year ago

Description of the issue

If the kit changes from default port (because another prototype is running), the plugin install/update/uninstall process fails

Steps to reproduce the issue

  1. start a prototype
  2. start a second prototype, say yes to port 3001
  3. in the second prototype, try to install, update or uninstall a plugin

Actual vs expected behaviour

expected: plugin processes successfully actual: the kit fails to restart

log:

Completed npm install @govuk-prototype-kit/step-by-step
Plugin @govuk-prototype-kit/step-by-step has been added
Added @govuk-prototype-kit/step-by-step
Restarting kit

ERROR: Port 3000 in use - you may have another prototype running.

? Change to an available port? (Y/n) 

Environment (where applicable)

joelanman commented 1 year ago

seems to be fixed