How to run 1.x cd 1.x && npm run build 2.x cd 2.x && npm run build 2.x version will fail, whereas 1.x does not.