Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. (Optional, create subdirectories)
  2. mkdir poa
  3. cd poa
  4.  
  5. (Install Various dependencies)
  6. sudo apt install gcc g++ libudev-dev pkg-config file make cmake git node.js perl yasm
  7. npm i -g eslint
  8.  
  9. (Install Parity and dependencies)
  10. sudo apt install curl
  11. curl https://sh.rustup.rs -sSf | sh
  12. source $HOME/.cargo/env
  13. bash <(curl https://get.parity.io -L) -r stable
  14.  
  15. (Install PoA Test Setup)
  16. sudo git clone https://github.com/poanetwork/poa-test-setup
  17. cd poa-test-setup
  18. sudo npm i
  19. sudo npm run start-moc-setup
  20.  
  21. (Launch dApps)
  22. sudo npm run launch-dapps
  23.  
  24. (FAILED: git submodule update --init submodules/poa-dapps-validators && git submodule update --init submodules/poa-dapps-voting && git submodule update --init submodules/poa-dapps-keys-generation)
  25.  
  26. (TRIED:)
  27. sudo npm run stop-test-setup
  28. sudo echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
  29. sudo sysctl -p
  30. sudo npm run start-moc-setup
  31. sudo npm run launch-dapps
  32. (DID NOT WORK)
  33.  
  34.  
  35. (REMOVED git submodule update --init submodules/poa-dapps-voting FROM get-dapps-submodules IN packages.json)
  36. cd submodules
  37. sudo git clone https://github.com/poanetwork/poa-dapps-voting.git
  38. cd poa-dapps-voting
  39. sudo npm i
  40. sudo npm start
  41.  
  42.  
  43. sudo npm run launch-dapps
  44.  
  45.  
  46. (ERROR OUTPUT)
  47. Governance Repo is prepared
  48.  
  49. > poa-test-setup@0.1.0 prepare-governance-dapp-more /home/colin/poa/poa-test-setup
  50. > cd ./submodules/poa-dapps-voting && npm i > /dev/null 2>&1 && npm run lint -- --fix
  51.  
  52.  
  53. > poa-dapps-voting@0.1.0 lint /home/colin/poa/poa-test-setup/submodules/poa-dapps-voting
  54. > eslint src "--fix"
  55.  
  56. Cannot read property 'type' of undefined
  57. TypeError: Cannot read property 'type' of undefined
  58. at isForInRef (/home/colin/poa/poa-test-setup/submodules/poa-dapps-voting/node_modules/eslint/lib/rules/no-unused-vars.js:406:24)
  59. at variable.references.some.ref (/home/colin/poa/poa-test-setup/submodules/poa-dapps-voting/node_modules/eslint/lib/rules/no-unused-vars.js:443:21)
  60. at Array.some (<anonymous>)
  61. at isUsedVariable (/home/colin/poa/poa-test-setup/submodules/poa-dapps-voting/node_modules/eslint/lib/rules/no-unused-vars.js:442:40)
  62. at collectUnusedVariables (/home/colin/poa/poa-test-setup/submodules/poa-dapps-voting/node_modules/eslint/lib/rules/no-unused-vars.js:565:26)
  63. at collectUnusedVariables (/home/colin/poa/poa-test-setup/submodules/poa-dapps-voting/node_modules/eslint/lib/rules/no-unused-vars.js:572:17
  64.  
  65. npm ERR! Linux 4.15.0-36-generic
  66. npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "lint" "--" "--fix"
  67. npm ERR! node v8.10.0
  68. npm ERR! npm v3.5.2
  69. npm ERR! code ELIFECYCLE
  70. npm ERR! poa-dapps-voting@0.1.0 lint: `eslint src "--fix"`
  71. npm ERR! Exit status 1
  72. npm ERR!
  73. npm ERR! Failed at the poa-dapps-voting@0.1.0 lint script 'eslint src "--fix"'.
  74. npm ERR! Make sure you have the latest version of node.js and npm installed.
  75. npm ERR! If you do, this is most likely a problem with the poa-dapps-voting package,
  76. npm ERR! not with npm itself.
  77. npm ERR! Tell the author that this fails on your system:
  78. npm ERR! eslint src "--fix"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement