You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:Simply installing `sinopia` does not create a config file (or even a
directory when it should be placed). Running `sinopia` for the first time
generates a default config file so it?s easier for the user to
configure it properly.
Closesfacebook#7146
Differential Revision: D3212613
Pulled By: mkonicek
fb-gh-sync-id: e1a2bbd8311a93b4d8a230902dd8031c85a205c3
fbshipit-source-id: e1a2bbd8311a93b4d8a230902dd8031c85a205c3
Copy file name to clipboardExpand all lines: react-native-cli/README.md
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,11 @@ Because `react-native init` calls `npm install react-native`, simply linking you
10
10
11
11
$ npm install -g sinopia
12
12
13
-
Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the `max_body_size`):
13
+
Now you can run sinopia by simply doing:
14
+
15
+
$ sinopia
16
+
17
+
Running it for the first time creates a default config file. Open `~/.config/sinopia/config.yaml` and configure it like this (note the `max_body_size`):
14
18
15
19
storage: ./storage
16
20
@@ -40,9 +44,7 @@ Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the
40
44
41
45
max_body_size: '50mb'
42
46
43
-
Now you can run sinopia by simply doing:
44
-
45
-
$ sinopia
47
+
Remember to restart sinopia afterwards.
46
48
47
49
### Publishing to sinopia
48
50
@@ -99,12 +101,12 @@ This usually happens when you install a package using one version of Node and th
99
101
100
102
$ npm uninstall -g sinopia
101
103
$ npm install -g sinopia
102
-
104
+
103
105
After upgrading to Node 4 you might also need to reinstall npm. What worked for me was:
104
106
105
107
$ npm uninstall -g npm
106
108
$ nvm install npm
107
-
109
+
108
110
See the [nvm guide](https://github.com/creationix/nvm#usage) for more info.
0 commit comments