update version of node gyp

  1. Open a terminal or command prompt.

  2. Run the following command to update npm to the latest version: npm install -g npm

  3. Run the following command to update node-gyp globally: npm install -g node-gyp

  4. Verify that the update was successful by checking the installed version of node-gyp: node-gyp --version