mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Merge pull request #361 from vvp/master
Add Linux-specific installation details in README
This commit is contained in:
commit
a516d6d38a
15
README.md
15
README.md
@ -127,11 +127,24 @@ npm install --global babel-cli
|
||||
npm install --global webpack
|
||||
```
|
||||
|
||||
Some dependencies depend on native addon modules, so you'll also need to meet [node-gyp's](https://github.com/nodejs/node-gyp#installation) installation prerequisites. Therefore, Linux users may need to
|
||||
```
|
||||
make clean && make
|
||||
```
|
||||
to redo the local package-lock.json with working native dependencies.
|
||||
|
||||
### Browser example
|
||||
|
||||
In macOS:
|
||||
```
|
||||
npm run build
|
||||
npm run examples:browser
|
||||
npm run examples:browser-macos
|
||||
```
|
||||
|
||||
In Linux:
|
||||
```
|
||||
npm run build
|
||||
npm run examples:browser-linux
|
||||
```
|
||||
|
||||
<p align="left">
|
||||
|
@ -47,7 +47,8 @@
|
||||
"scripts": {
|
||||
"examples": "npm run examples:node",
|
||||
"examples:node": "node examples/eventlog.js",
|
||||
"examples:browser": "open examples/browser/browser.html",
|
||||
"examples:browser-macos": "open examples/browser/browser.html",
|
||||
"examples:browser-linux": "xdg-open examples/browser/browser.html",
|
||||
"test": "TEST=all mocha",
|
||||
"build": "npm run build:es5 && npm run build:debug && npm run build:dist && npm run build:examples",
|
||||
"build:examples": "webpack --config conf/webpack.example.config.js --sort-modules-by size && mkdir -p examples/browser/lib && cp node_modules/ipfs/dist/index.js examples/browser/lib/ipfs.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user