Tips and Tricks for Node.js

npm install

Unlike with PHP composer install, the command npm install takes package.json and resolves the dependencies which means that you might introduce a version different from the one you tested on.

For deploys, CI or initial local environment setup, the recommended way to install the dependencies of a project is using npm ci.