If you do
C:\> npm ci <ret>
Before
C:\> npm run build <ret>
The ci command will install the exact versions from the auto created package–lock.Json without updating anything. Then the Build command will build the same as before. Effectively the ci command locks your libraries.