Skip to content

Commit 4ede7db

Browse files
authored
Merge pull request #85 from t-ho/fix/issue-84-unable-to-install-npm-packages
Fix issue #84 - unable to install npm packages
2 parents d4b8188 + 01e6b4a commit 4ede7db

13 files changed

Lines changed: 25119 additions & 33883 deletions

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ NGINX_LE_FQDN=your-domain.com,www.your-domain.com
1313
NGINX_LE_LETSENCRYPT=false
1414
NGINX_LE_TZ=timezone
1515
NGINX_PROXY_PORT=8080
16+
NGROK_AUTH_TOKEN=[NGROK-AUTH-TOKEN]
1617
NODE_ENV=development
1718
PORT=3000
1819
PUBLIC_IP_ADDRESS=[YOUR-PUBLIC-IP-ADDRESS]

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ cp mobile/.env.example mobile/.env
123123
In the `root` directory, run:
124124

125125
```bash
126-
npm install
126+
yarn install
127127
```
128128

129129
### 3. Start development servers
@@ -132,7 +132,7 @@ To start `server`, `client`, and `mobile`, run:
132132

133133
```bash
134134
# In the root directory (mern):
135-
npm start
135+
yarn start
136136
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
137137
# Web client is running at http://localhost:PORT (http://localhost:3000 by default)
138138
# Mobile - Expo DevTools is running at http://localhost:19002
@@ -143,20 +143,20 @@ npm start
143143
- **For the sake of simplicity, we use free service [ngrok](https://ngrok.com/) to create a public API URL for mobile development. The downside of this approach is that the public URL is only available for 8 hours, so we need to restart the npm process every 8 hours.**
144144
- **After 8 hours, the `mobile` process will be terminated, and a warning message will be displayed in your terminal to remind you to restart npm process.**
145145

146-
To restart npm process (_If you don't start the mobile development process, ignore this step_):
146+
To restart yarn process (_If you don't start the mobile development process, ignore this step_):
147147

148148
```bash
149149
# In your current terminal, press Ctrl + C to exit. Then run
150-
npm start # start server, client and mobile dev process
150+
yarn start # start server, client and mobile dev process
151151
# or
152-
npm run server:mobile # start server and mobile dev process
152+
yarn run server:mobile # start server and mobile dev process
153153
```
154154

155155
Or to start `server` and `client` only, run:
156156

157157
```bash
158158
# In the root directory (mern):
159-
npm run server:client
159+
yarn run server:client
160160
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
161161
# Web client is running at http://localhost:PORT (http://localhost:3000 by default)
162162
```
@@ -165,7 +165,7 @@ Or to start `server` and `mobile` only, run:
165165

166166
```bash
167167
# In the root directory (mern):
168-
npm run server:mobile
168+
yarn run server:mobile
169169
# Server API is running at http://localhost:SERVER_PORT (http://localhost:8861 by default)
170170
```
171171

client/package-lock.json

Lines changed: 0 additions & 17228 deletions
This file was deleted.

client/yarn.lock

Lines changed: 12675 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)