bench.utils.CommandFailedError: npm install

  • sudo apt-get update

  • sudo apt-get install nodejs

  • sudo apt-get install npm

  • nodejs -v

  • cd ~

  • curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh

  • nano nodesource_setup.sh

  • sudo bash nodesource_setup.sh

  • sudo apt-get install nodejs

  • nodejs -v

  • npm -v

  • sudo apt-get install build-essential
    Kindly purge the existing npm and follow the above steps,
    Use this code for installing npm .

2 Likes