skip to Main Content
[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.

4

Answers


  1. Chosen as BEST ANSWER

    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


  2. 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

    Login or Signup to reply.
  3. I run into this error too and solved the issue by running:
    "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! "

    $ rm -rf node_modules package-lock.json && npm install on my bash-windows terminal
    
    Login or Signup to reply.
  4. I got an error because my colleague deleted the package-lock.json file and then npm i.
    I solved it like this:

    1. Copy the history file containing lockfileVersion@1 from GitLab to package-lock.json
    2. Delete node_modules
    3. npm i
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search