install npm install ws globally code example Example: npm install package globally #Syntex npm install packagename -g #example npm install express -g