Skip to content

Commit 6335e5f

Browse files
authored
replace npm start with npm run start (#304)
1 parent d7c5093 commit 6335e5f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Diff for: configuration/autostart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Add the following lines:
4444

4545
```shell
4646
cd ./MagicMirror
47-
DISPLAY=:0 npm start
47+
DISPLAY=:0 npm run start
4848
```
4949

5050
Save and close, using the commands `CTRL-O` and `CTRL-X`. Now make sure the

Diff for: configuration/introduction.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,23 @@ By default, you would use config.js with a bash script (mm.sh):
8484

8585
```bash
8686
cd ~/MagicMirror
87-
npm start
87+
npm run start
8888
```
8989

9090
To use the 2nd configuration file, use a bash script like this (mm2.sh):
9191

9292
```bash
9393
cd ~/MagicMirror
9494
export MM_CONFIG_FILE=config/config2.js
95-
npm start
95+
npm run start
9696
```
9797

9898
To change the port:
9999

100100
```bash
101101
cd ~/MagicMirror
102102
export MM_PORT=8081
103-
npm start
103+
npm run start
104104
```
105105

106106
You can run `npm run config:check` on your 2nd configuration file by typing the
@@ -182,7 +182,7 @@ cd ~/MagicMirror
182182
export MY_ADDRESS=localhost
183183
export MY_PORT=8080
184184
export MY_HTTPS=false
185-
npm start
185+
npm run start
186186
```
187187

188188
### Using `electronOptions`
@@ -217,15 +217,15 @@ Starting Script 1 (mm.sh):
217217
218218
```bash
219219
cd ~/MagicMirror
220-
npm start
220+
npm run start
221221
```
222222
223223
Starting Script 2 (mm2.sh):
224224
225225
```bash
226226
cd ~/MagicMirror
227227
export MM_CONFIG_FILE=config/config2.js
228-
npm start
228+
npm run start
229229
```
230230
231231
Configuration file 1 (config.js):

Diff for: getting-started/installation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ Command Prompt:
107107

108108
Otherwise the screen will stay black when starting the software.
109109

110-
**Step 7:** In Windows you must use `npm start:windows` instead of `npm start`.
110+
**Step 7:** In Windows you must use `npm run start:windows` instead of `npm run start`.
111111

112112
## Usage
113113

114114
Note the following:
115115

116-
- `npm start` does **not** work via SSH. But you can use
117-
`DISPLAY=:0 nohup npm start &` instead. \
116+
- `npm run start` does **not** work via SSH. But you can use
117+
`DISPLAY=:0 nohup npm run start &` instead. \
118118
This starts the mirror on the remote display.
119119
- If you want to debug on your Raspberry Pi you can use `npm run start:dev`
120120
which will start MM with _Dev Tools_ enabled.

0 commit comments

Comments
 (0)