Migrate an existing prototype to version 13 with the migration script
Install Node.js version 18.
In the terminal, delete the folder
node_modules(doing this first will make the backup quicker).
Make a backup of your prototype folder. You can do this in Finder or Windows Explorer.
In the terminal,
cdto your prototype folder.
Run this command:
npx govuk-prototype-kit@13 migrate
- If some migration steps fail, the script will report these.
If this is the case, contact the GOV.UK Prototype team.
If your prototype does not work
If your prototype does not work, compare the new
package.json file to the
package.json file in the backup you made in step 3.
npm install PACKAGE-NAME for each package that's missing in the new file.
Contact the contact the GOV.UK Prototype team if you need help doing this.