【第54日目】42歳の金のないキモいおっさんがブロックチェーンエンジニアを目指す日記「まだ開発環境構築でつまづいてます」
こんばんは。ひろあきです。2日ぶりのnote更新です。まだ元気です。
前回のnoteで、イーサリアムでの開発環境構築でつまづいてる件を書きましたが、参考にさせていただいているnoteの作者さんにコメント欄で助けを求めたところ、すぐに的確なアドバイスをいただけ、その件については解決しました。DaiDaiさん、ありがとうございました。しかし、一難去ってまた一難。今度はこんなエラーが…。
ubuntu@ik1-340-30401:~/remix-ide$ npm start
> remix-ide@0.6.3 start /home/ubuntu/remix-ide
> npm-run-all -lpr serve watch onchange remixd
[serve ]
[serve ] > remix-ide@0.6.3 serve /home/ubuntu/remix-ide
[serve ] > execr --silent http-server .
[serve ]
[onchange]
[onchange] > remix-ide@0.6.3 onchange /home/ubuntu/remix-ide
[onchange] > onchange build/app.js -- npm-run-all lint
[onchange]
[remixd ]
[remixd ] > remix-ide@0.6.3 remixd /home/ubuntu/remix-ide
[remixd ] > ./node_modules/remixd/bin/remixd -s ./contracts
[remixd ]
[watch ]
[watch ] > remix-ide@0.6.3 watch /home/ubuntu/remix-ide
[watch ] > watchify src/index.js -dv -p browserify-reload -o build/app.js
[watch ]
[remixd ] sh: 1: ./node_modules/remixd/bin/remixd: not found
[remixd ]
[remixd ] npm ERR! Linux 4.4.0-62-generic
[remixd ] npm ERR! argv "/home/ubuntu/.nvm/versions/node/v7.10.1/bin/node" "/home/ubuntu/.nvm/versions/node/v7.10.1/lib/node_modules/npm/bin/npm-cli.js" "run" "remixd"
[remixd ] npm ERR! node v7.10.1
[remixd ] npm ERR! npm v4.2.0
[remixd ] npm ERR! file sh
[remixd ] npm ERR! code ELIFECYCLE
[remixd ] npm ERR! errno ENOENT
[remixd ] npm ERR! syscall spawn
[remixd ] npm ERR! remix-ide@0.6.3 remixd: `./node_modules/remixd/bin/remixd -s ./contracts`
[remixd ] npm ERR! spawn ENOENT
[remixd ] npm ERR!
[remixd ] npm ERR! Failed at the remix-ide@0.6.3 remixd script './node_modules/remixd/bin/remixd -s ./contracts'.
[remixd ] npm ERR! Make sure you have the latest version of node.js and npm installed.
[remixd ] npm ERR! If you do, this is most likely a problem with the remix-ide package,
[remixd ] npm ERR! not with npm itself.
[remixd ] npm ERR! Tell the author that this fails on your system:
[remixd ] npm ERR! ./node_modules/remixd/bin/remixd -s ./contracts
[remixd ] npm ERR! You can get information on how to open an issue for this project with:
[remixd ] npm ERR! npm bugs remix-ide
[remixd ] npm ERR! Or if that isn't available, you can get their info via:
[remixd ] npm ERR! npm owner ls remix-ide
[remixd ] npm ERR! There is likely additional logging output above.
[remixd ]
[remixd ] npm ERR! Please include the following file with any support request:
[remixd ] npm ERR! /home/ubuntu/.npm/_logs/2018-05-25T14_02_04_902Z-debug.log
ERROR: "remixd" exited with 1.
npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v7.10.1/bin/node" "/home/ubuntu/.nvm/versions/node/v7.10.1/bin/npm" "start"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! remix-ide@0.6.3 start: `npm-run-all -lpr serve watch onchange remixd`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the remix-ide@0.6.3 start script 'npm-run-all -lpr serve watch onchange remixd'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the remix-ide package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm-run-all -lpr serve watch onchange remixd
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs remix-ide
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls remix-ide
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/.npm/_logs/2018-05-25T14_02_05_031Z-debug.log
どうも自分はこのnpm(node.jsのパッケージ管理ツールらしい)と相性が悪いみたいです。ただ、今回はちょっと心当たりがあって、これが怪しいと思うですよね。それが以下の画面になります。
ubuntu@ik1-340-30401:~$ sudo apt-get install build-essential
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libdpkg-perl libfakeroot
libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx0 libquadmath0
libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-5-locales debian-keyring g++-multilib g++-5-multilib gcc-5-doc libstdc++6-5-dbg
gcc-multilib autoconf automake libtool flex bison gdb gcc-doc gcc-5-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg
glibc-doc libstdc++-5-doc make-doc
The following NEW packages will be installed:
binutils build-essential cpp cpp-5 dpkg-dev fakeroot g++ g++-5 gcc gcc-5 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan2 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5
libdpkg-perl libfakeroot libfile-fcntllock-perl libgcc-5-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4
libmpx0 libquadmath0 libstdc++-5-dev libtsan0 libubsan0 linux-libc-dev make manpages-dev
0 upgraded, 37 newly installed, 0 to remove and 4 not upgraded.
Need to get 849 kB/38.6 MB of archives.
After this operation, 145 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-124.148
404 Not Found
Err:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 linux-libc-dev amd64 4.4.0-124.148
404 Not Found
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.4.0-124.148_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
npmを実行する前段階として、build-essentialというのをインストールしなければならないのですが、地味にそこでエラーが出ていてちゃんとインストールされてないっぽいんですよね。こいつが怪しい…。明日以降ここを攻めてみます。それでは今日はこの辺で。おやすみなさい。
〈5月24日【第53日目】の学習内容〉
・大津真『きちんとわかる!JavaScriptとことん入門』~Chapter5-2
・学習時間 約0+1.5+0時間
〈今日の学習内容〉
・大津真『きちんとわかる!JavaScriptとことん入門』~Chapter6-1
・ブロックチェーン開発環境構築(remixインストールで悪戦苦闘)
・学習時間 約1.5(Solidity等)+2.25(JavaScript)+0(HTML・CSS)時間