[Dapp] truffle migrate --network rinkeby 錯誤 Cannot find module 'ethereumjs-wallet/hdkey'
install
,最好用新版的,如下所式
Update:
npm install ethereumjs-wallet
但是現在ethereumjs-wallet 有點問題,錯誤如下Error: Cannot find module 'ethereumjs-wallet/hdkey'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/robert/Documents/GitHub/ME/ether-band-battles-work/solidity/node_modules/truffle-hdwallet-provider/index.js:2:13)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/robert/Documents/GitHub/ME/ether-band-battles-work/solidity/truffle.js:2:24)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Function.Config.load (/home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/webpack:/~/truffle-config/index.js:259:1)
at Function.Config.detect (/home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/webpack:/~/truffle-config/index.js:248:1)
at Object.run (/home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/webpack:/~/truffle-core/lib/commands/migrate.js:35:1)
at Command.run (/home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/webpack:/~/truffle-core/lib/command.js:101:1)
at Object. (/home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/webpack:/~/truffle-core/cli.js:16:1)
at __webpack_require__ (/home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/webpack:/webpack/bootstrap b4601922d6f11f8bff0b:19:1)
at /home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/webpack:/webpack/bootstrap b4601922d6f11f8bff0b:65:1
at Object. (/home/robert/.nvm/versions/node/v10.2.1/lib/node_modules/truffle/build/cli.bundled.js:71:10)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
,最好用新版的,如下所式
Update:
npm uninstall ethereumjs-wallet
npm uninstall truffle-hdwallet-provider
npm install ethereumjs-wallet@0.6.0
npm install --save truffle-hdwallet-provider
Invest in Ethereum on eToro the World's Best Social Trading Network.
回覆刪除Join 1,000,000's who have already discovered easier strategies for investing in Ethereum.
Learn from profitable eToro traders or copy their orders automatically!