18

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.

jemz
  • 4,987
  • 18
  • 62
  • 102

2 Answers2

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

GabrielOshiro
  • 7,986
  • 4
  • 45
  • 57
1

You can check the socket.io version in node_modules->socket.io->package.json and there will be "version": "your version of socket.io".

neoko
  • 11
  • 2