Updating the kit
Use the latest version of the NHS prototype kit.
If you are upgrading to NHS prototype kit version 7, this also upgrades NHS frontend to version 10. You will need to follow the upgrading to version 10 guide to make any required changes to your code.
-
In your prototype folder, delete everything apart from the
appand.gitfolders (the.gitmay be hidden). -
Copy everything from the latest kit into your prototype folder, apart from the
appfolder.If you have made any changes outside the
appfolder, this process will overwrite those changes. We will try and improve the update process to avoid this, but in the meantime you will need to make a note of your changes outsideapp, and add them back after updating. -
Navigate to your prototype in the terminal and enter: npm install
The install may take up to a minute.
While installing it may
WARNabout some items – this is okay. As long as there are noERRORsyou can continue.added 1251 packages, and audited 1252 packages in 7s 180 packages are looking for funding run `npm fund` for details 15 vulnerabilities (6 moderate, 9 high) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. -
Start your local server by entering in the terminal: npm run watch
After the kit has started, you should see a message telling you that the kit is running:
[18:58:50] Starting 'watch'... [18:58:50] [nodemon] 2.0.22 [18:58:50] [nodemon] to restart at any time, enter `rs` [18:58:50] [nodemon] watching path(s): *.* [18:58:50] [nodemon] watching extensions: js [18:58:50] [nodemon] starting `node app.js` [Browsersync] Proxying: http://localhost:2000 [Browsersync] Access URLs: ---------------------------------- Local: http://localhost:3000 External: http://192.168.1.94:3000 ---------------------------------- [Browsersync] Watching files...
Help and support
If you have any problems:
- ask a developer on your team (if you have one)
- email the service manual team at england.service-manual.nhs.net
- get in touch on the NHS digital service manual #prototype-kit Slack channel