Parcourir la source

Merge pull request #235 from Prashoon123/patch-1

Added installation method for yarn
Alex Sosnovskiy il y a 4 ans
Parent
commit
e048e5ea89
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      README.md

+ 7 - 2
README.md

@@ -51,9 +51,14 @@ $ kubectl run peerjs-server --image=peerjs/peerjs-server --port 9000 --expose --
 If you have your own server, you can attach PeerServer.
 
 1. Install the package:
-    ```sh
-    #$ cd your-project-path
+    ```bash
+    # $ cd your-project-path
+    
+    # with npm
     $ npm install peer
+    
+    # with yarn
+    $ yarn add peer
     ```
 2. Use PeerServer object to create a new server:
     ```javascript