Install packages with npm ci in production

    Using to install packages will do exactly that and more.

    • If a folder is present it will automatically remove it before installing

    You are guaranteed that you CI environment or QA will test your software with exactly the same package version that the one you will later send to production. Also, if for some reason someone manually changes package.json, not through a cli command but rather by directly editing package.json, a gap between package.json & package-lock.json is created and an error will be thrown.

    Blog post announcing the release of command