diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-12-07 01:08:18 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-12-07 01:08:18 +0800 |
commit | 5f5f40768c09ba7ca9777a7157740f4cf97c382f (patch) | |
tree | f78121928df660407ff42fba063211dd3dbc4374 /RPCTests | |
parent | a94e1ef35fa38d5204e93882f1d525da53557fba (diff) | |
download | dexon-tests-5f5f40768c09ba7ca9777a7157740f4cf97c382f.tar dexon-tests-5f5f40768c09ba7ca9777a7157740f4cf97c382f.tar.gz dexon-tests-5f5f40768c09ba7ca9777a7157740f4cf97c382f.tar.bz2 dexon-tests-5f5f40768c09ba7ca9777a7157740f4cf97c382f.tar.lz dexon-tests-5f5f40768c09ba7ca9777a7157740f4cf97c382f.tar.xz dexon-tests-5f5f40768c09ba7ca9777a7157740f4cf97c382f.tar.zst dexon-tests-5f5f40768c09ba7ca9777a7157740f4cf97c382f.zip |
Adding common errors
Diffstat (limited to 'RPCTests')
-rw-r--r-- | RPCTests/README.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/RPCTests/README.txt b/RPCTests/README.txt index 3137d1d0b..95426fbe7 100644 --- a/RPCTests/README.txt +++ b/RPCTests/README.txt @@ -1 +1,35 @@ See https://github.com/ethereum/cpp-ethereum/blob/7cc43bed7de890a496d7238092837c30c7e90729/scripts/runalltests.sh#L38 for how cpp-ethereum uses this. + +FAQ +=== + +Cannot find module +------------------ + +I get an error: +``` +$ node main.js $workdir/cpp-ethereum/build/eth/eth +module.js:471 + throw err; + ^ + +Error: Cannot find module '/home/yh/src/tests/RLPTests/main.js' + at Function.Module._resolveFilename (module.js:469:15) + at Function.Module._load (module.js:417:25) + at Module.runMain (module.js:604:10) + at run (bootstrap_node.js:393:7) + at startup (bootstrap_node.js:150:9) + at bootstrap_node.js:508:3 +``` + +Answer: if your `main.js` is in your current directory, use `./main.js` instead of just `main.js`. + + +Cannot find module web3 +----------------------- + +I get an error: +``` +$ node ./main.js ~/src/cpp-ethereum/build/eth/eth +(node:27647) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module 'web3' +``` |