Today When I run the “npm update” command, the update process is hung at this line:
1 | > ws@0.4.25 install /root/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws |
I got the solution here:
1 | npm install -g node-gyp # Install the "node-gyp" globally. |
“npm-gyp” is “Node.js native addon build tool”. The “-g” option makes it be installed globally(at “/usr/local/lib/node_modules/node-gyp” in my case).