Skip to content

Commit

Permalink
doc: add FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
samlior committed Jun 24, 2022
1 parent 8df9dcf commit 230c299
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,58 @@ These scripts execute lint and lint:fix respectively, to all monorepo packages.

A: Please update the node version to **14.0.0** or higher. [nvm](https://github.com/nvm-sh/nvm) may be able to help you

- Q: Why do I get `CMake executable is not found` when I install `@rei-network/cli`?

<details><summary> like this </summary>

```
npm ERR! code 1
npm ERR! path /root/.nvm/versions/node/v14.16.1/lib/node_modules/@rei-network/cli/node_modules/@rei-network/binding
npm ERR! command failed
npm ERR! command sh -c npm run install:leveldb && npm run install:napi-macros && npm run install:snappy && npm run build
npm ERR! > @rei-network/[email protected] install:leveldb
npm ERR! > test -d leveldb || git clone https://github.com/REI-Network/leveldb
npm ERR!
npm ERR!
npm ERR! > @rei-network/[email protected] install:napi-macros
npm ERR! > test -d napi-macros || git clone https://github.com/hyperdivision/napi-macros
npm ERR!
npm ERR!
npm ERR! > @rei-network/[email protected] install:snappy
npm ERR! > test -d snappy || git clone https://github.com/google/snappy
npm ERR!
npm ERR!
npm ERR! > @rei-network/[email protected] build
npm ERR! > cmake-js --CDLEVELDB_BUILD_TESTS=OFF --CDLEVELDB_BUILD_BENCHMARKS=OFF --CDLEVELDB_INSTALL=OFF --CDSNAPPY_BUILD_TESTS=OFF --CDSNAPPY_BUILD_BENCHMARKS=OFF --CDSNAPPY_INSTALL=OFF build
npm ERR!
npm ERR! [
npm ERR! '/root/.nvm/versions/node/v14.16.1/bin/node',
npm ERR! '/root/.nvm/versions/node/v14.16.1/lib/node_modules/@rei-network/cli/node_modules/.bin/cmake-js',
npm ERR! '--CDLEVELDB_BUILD_TESTS=OFF',
npm ERR! '--CDLEVELDB_BUILD_BENCHMARKS=OFF',
npm ERR! '--CDLEVELDB_INSTALL=OFF',
npm ERR! '--CDSNAPPY_BUILD_TESTS=OFF',
npm ERR! '--CDSNAPPY_BUILD_BENCHMARKS=OFF',
npm ERR! '--CDSNAPPY_INSTALL=OFF',
npm ERR! 'build'
npm ERR! ]
npm ERR! clone 'leveldb'...
npm ERR! clone 'napi-macros'...
npm ERR! clone 'snappy'...
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info DIST Downloading distribution files to: /root/.cmake-js/node-x64/v14.16.1
npm ERR! http DIST - https://nodejs.org/dist/v14.16.1/SHASUMS256.txt
npm ERR! http DIST - https://nodejs.org/dist/v14.16.1/node-v14.16.1-headers.tar.gz
npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-06-24T06_05_09_742Z-debug.log
```

</details>

A: Please use your system's package manager to install cmake, like `sudo apt install cmake` or `sudo yum install cmake`

## License

[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html)
Expand Down

0 comments on commit 230c299

Please sign in to comment.