Post

Yesterday I built a Go web app that served an embedded static next.js site for the UI. It was glorious. Today I tried to run the nextjs build again and got a hundred npm errors. Computers were a mistake.

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.