Skip to content

Commit 8d2aae4

Browse files
authored
Merge pull request creativecommons#375 from madewithkode/hotfix/improve-readme
Improved project documentation
2 parents 4e7dfbf + 37190a9 commit 8d2aae4

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

README.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,32 @@ via lektor (see [Deployment](#deployment), below).
4747

4848
### Pre-Requisites
4949

50-
Make sure you have [pipenv][pipenvdocs], [Node.js][nodejswebsite] and [npm][npmdocs] installed. To install these, execute the following commands:
50+
Make sure you have:
51+
52+
* [pipenv][pipenvdocs]
53+
54+
* [Node.js][nodejswebsite] **v12+** and [npm][npmdocs] installed.
55+
56+
To install these, execute the following commands:
5157

5258
> For macOS:
59+
5360
1. `brew install pipenv`
5461
2. `brew install node`
5562

5663
> For GNU/Linux:
64+
5765
1. `curl https://raw.githubusercontent.com/kennethreitz/pipenv/master/get-pipenv.py | python`
5866
2. `sudo apt update`
59-
3. `sudo apt install nodejs`
67+
3. [Install Node.js](https://github.com/nodesource/distributions/blob/master/README.md#table-of-contents)
6068
4. `sudo apt install npm `
6169

6270
[pipenvdocs]:https://pipenv.readthedocs.io/en/latest/
6371
[nodejswebsite]:https://nodejs.org/en/
6472
[npmdocs]:https://docs.npmjs.com/
6573

6674

75+
6776
### Installing Project Requirements
6877

6978
1. Clone this repository.
@@ -91,6 +100,20 @@ else fails, try removing the virtual environment and reinstalling:
91100

92101
[local5000]:http://localhost:5000/
93102

103+
### Troubleshooting Possible Errors
104+
105+
* Should you get series of type errors that looks something like `npm ERR! typeerror Error: Missing required argument #1`, after running `pipenv run lektor server -f webpack`, this is most likely due to running an older version of Node.js.
106+
107+
As stated earlier in the prerequisites, you should be running Node.js version 12+.
108+
Follow [this](https://github.com/nodesource/distributions/blob/master/README.md#table-of-contents) tutorial to upgrade your node version (for GNU/Unix systems).
109+
110+
* Should you get an `OSError: [Errno 28] inotify watch limit reached` after running any command, this means that your system file watcher is running out of alloted handles, usually because the workspace is large and contains many files.
111+
112+
The solution is to run:
113+
`sudo sysctl fs.inotify.max_user_watches=524288`
114+
115+
This increases your `inotify` watch limit (for the session) to 524288, which is the maximum value and is also enough to allow the setup go through.
116+
You can learn more about file watchers [from this blog post](https://unixia.wordpress.com/2018/04/28/inotify-watch-limit-reached-wait-what/) or [from the VS Code documentation](https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc).
94117

95118
## Deployment
96119

0 commit comments

Comments
 (0)