1

[ERROR] - An error occurred during execution of command [app-deploy] - [Use NPM to install dependencies]. Stop running the command. Error: Command /bin/sh -c npm --production install failed with error signal: killed. Stderr:npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1.

Rabin
  • 41
  • 1
  • 6

2 Answers2

2

I have solved this issue by removing node_modules and package.json file and then, installing all the packages using npm install. The provided command was used : sudo rm -rf node_modules package-lock.json && npm install

Rabin
  • 41
  • 1
  • 6
1

That error happens because npm did change its package-lock.json format in version 7. So some of packages in your project were using old npm package-lock.json. Instead of deleting all packages and installing manually you could just

 npm update

This would update all the npm packages to its latest version

Yilmaz
  • 1
  • 7
  • 79
  • 120