Categories
Laravel Samuel

Deploying An Old Laravel Site

When deploying an old site today we ran npm install which triggers this issue:

npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! 

npm WARN img-loader@3.0.1 requires a peer of imagemin@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN laravel-mix-transpile-node-modules@2.0.1 requires a peer of laravel-mix@^4.0.0||^5.0.0||^6.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN v-calendar@2.3.0 requires a peer of @popperjs/core@^2.4.0 but none is installed. You must install peer dependencies yourself.

The staging server in this case had an older version of NPM installed than what our two developers were using in their local environments, so to fix this we got staging in sync with the NPM version that the developers were now using by running:

npm audit fix
npm install -g npm