Truffle
在 Ubuntu 中安裝 testrpc 時出現未知錯誤
我試圖使用
sudo npm install -g ethereumjs-testrpc
.但沒有顯示 ERR 消息。只有這個是輸出:
/home/***/.npm-global/bin/testrpc -> /home/***/.npm-global/lib/node_modules/ethereumjs-testrpc/bin/testrpc /home/***/.npm-global/lib -- ethereumjs-testrpc@3.0.5-- web3@0.16.0 `-- bignumber.js@2.0.7 (git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2)
打字
testrpc
說找不到命令。
請幫忙!
作業系統:Ubuntu 16.10
我剛剛在乾淨的 Ubuntu 17.04 上進行了測試,它可以工作。我有一個節點 v6.10.3
ubuntu@1704:~/browser-solidity$ testrpc EthereumJS TestRPC v3.0.5 Available Accounts ================== (0) 0x4ab1b67474ce39c8c1759721df2ca71d39793763 (1) 0xadbc646dcc67d3e30e48ca0bbc68089b6f975223 (2) 0x596987a65a9ca1ca878e014e3569cddd489ec911 (3) 0x7baa4193a330f0940487c0c8de40a24d57f228b3 (4) 0xdc2a06af2aac15d65df533d6a1495a50732c852d (5) 0x05701c81ac2ad9a49cac4971bbe8fde7f16cdab0 (6) 0x806435b01b3b57e3b10fdac8e8990d4cc3876759 (7) 0x4fb64a1ee8d8f9e64582d068e6c98f646b0471e8 (8) 0x00b08b0777b22a89bdda6709178c804b7f8219fb (9) 0x8d648b84a3cdbd01b5366b9705c9a1da03637d65 Private Keys ================== (0) 73567e5551c091d0b181048c558543509c3a9c0b63bd7f937abb3ccb4aed4952 (1) a920d6549c9477b058ddc5c43b127cbefc207eb994c0455e752f53eb25ecf5aa (2) 5df0f04be5770ba0878ccb0fb0c2f53eec6dc09335f9bc6bdb12beb0738a1a73 (3) c5415d0dc0663bcea1206cbcb99ddf4695f76a4610041dc290d4ac3f55c6b166 (4) 6fd811851cc5d1e3caa4877335cf3488bebc7892dd1f73e2149dfc98ba7f800e (5) 0551e9f93ff0b92846aeba558f5e68a8e5aa5d58b3d509d22f195254b8e5330f (6) b12ec41a98e5c64fd0e6b72ee5f8e216079a675e83b83d7c8d4b0546bd925cb7 (7) b77b42ed8ae348e0f38ef8859819363c74414e3459437ade07c403ea88dfa4cb (8) cbc9a401462fcb5063ead0083f086b40bcf6fd5af211090729e779e92783b61d (9) 53b0d5d08465766f38b66c105f33d8c08155e6eb46590f11707bb57b30237279 HD Wallet ================== Mnemonic: desert first wire into cream taxi lottery husband rebuild random bid direct Base HD Path: m/44'/60'/0'/0/{account_index} Listening on localhost:8545 ^C ubuntu@1704:~/browser-solidity$ node -v v6.10.3 ubuntu@1704:~/browser-solidity$ whereis testrpc testrpc: /usr/bin/testrpc
也嘗試從 git 安裝
git clone https://github.com/ethereumjs/testrpc.git cd testrpc sudo npm install .