Menu
About me Kontakt

The article discusses why using 'npm install' in CI/CD processes can be problematic. The author points out that this approach can lead to inconsistencies in production environments, as the installation of packages can vary based on versions, operating systems, or build platforms. Instead, the author suggests using techniques such as version locking and employing 'npm ci' for greater stability and predictability. 'npm ci' is significantly faster and more reliable as it installs exactly the same versions of packages that are defined in the 'package-lock.json' file. This contributes to simplifying the work of development teams and minimizing issues related to dependencies. Changing this approach in CI/CD can significantly improve code quality and application stability.