Browse Source

Merge pull request #235 from Prashoon123/patch-1

Added installation method for yarn
Alex Sosnovskiy 4 years ago
parent
commit
e048e5ea89
1 changed files with 7 additions and 2 deletions
  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.
 If you have your own server, you can attach PeerServer.
 
 
 1. Install the package:
 1. Install the package:
-    ```sh
-    #$ cd your-project-path
+    ```bash
+    # $ cd your-project-path
+    
+    # with npm
     $ npm install peer
     $ npm install peer
+    
+    # with yarn
+    $ yarn add peer
     ```
     ```
 2. Use PeerServer object to create a new server:
 2. Use PeerServer object to create a new server:
     ```javascript
     ```javascript