-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|