Search code examples
socket.iosocket.io-1.0

How do I check the version of socket.io and update it


how can I check the version of socket.io that I am using ? and how do I update it if there is new release.

Thank you in advance.


Solution

    1. Download npm, the NodeJS Package Manager
    2. Install npm
    3. Open the terminal and execute the following command to install socket.io

      npm install socket.io
      
    4. When you want to update it, execute the following command on the terminal

      npm update socket.io
      

    Alternatively you can execute

     npm update -g
    

    in order to update globally installed packages.


    To find out what is the current version execute npm list socket.io.