Hobby Science&Experiment

愛と工作の日々

趣味でやっている工作や勉強したことのメモ書きです。

【失敗編】BlynkでRaspberry Pi3+とスマホを接続するための環境を構築する

Blynkは各種IoTデバイスに対してスマホ等外部のデバイスから相互に通信を行えるシステムのことです。一つの用途としては、外部ネットからラズパイへのアクセスが考えられます。今回はBlynkからのラズパイLチカを目標に、Blynkの環境構築を試みました。
f:id:tara-chang:20200506100425p:plain
……が、かなり遠回りしたのでその失敗談を記録として残しておきます。エラー文も全て載せてあるので、同様のエラーに遭遇した方の参考になれば幸いです。十分知識あるの方からすると頭痛のするような内容だと思います。
※この記事は失敗編です。成功した方法は別の記事にまとめてあります。

試したことと結果

・Blynk公式の動画チュートリアルに従って環境構築するも、npmのインストールに躓く。
・npmをアップデートした。
・Blynkのインストールとサーバー立ち上げ、スマホアプリとのコネクションに成功。しかしLチカには失敗。
・結局Blynk公式のチュートリアルとは別な方法でBlynkをインストールし直した結果、Lチカに成功。

まず下準備

Blynkスマホアプリ側の準備

新しいプロジェクトを作成し、トークンを生成しておきます。これは直感操作で殆ど出来るかと思いますので詳細は割愛します。

配線

Raspberry PiのGPIO18ピンとGNDにLEDを接続しました。GPIO18をBlynkアプリでONできれば目標は達成となります。

公式動画チュートリアルに従って環境構築を試みる

動画はこちら。このチュートリアルを見る限りではとても簡単そうです。
youtu.be
動画の元となるコートと詳細な説明はこちらに載っています。公開はちょうど三年前です。
まずはNode.js.をインストールする前に、過去のバージョンを削除するとのことです。

pi@raspberrypi:~ $ sudo apt-get purge node nodejs node.js -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
注意、regex 'node.js' のために 'node-json-localizer' を選択します
注意、regex 'node.js' のために 'node-json-stable-stringify' を選択します
注意、regex 'node.js' のために 'node-jsv' を選択します
注意、regex 'node.js' のために 'node-jsonstream' を選択します
注意、regex 'node.js' のために 'node-jsdom' を選択します
注意、regex 'node.js' のために 'node-jsesc' を選択します
注意、regex 'node.js' のために 'node-json-stringify-safe' を選択します
注意、regex 'node.js' のために 'node-json5' を選択します
注意、regex 'node.js' のために 'node-jscoverage' を選択します
注意、regex 'node.js' のために 'node-js-yaml' を選択します
注意、regex 'node.js' のために 'node-jssip' を選択します
注意、regex 'node.js' のために 'node-jsonminify' を選択します
注意、regex 'node.js' のために 'node-jsonselect' を選択します
注意、regex 'node.js' のために 'node-jsonfile' を選択します
注意、regex 'node.js' のために 'node-jsonparse' を選択します
注意、regex 'node.js' のために 'node-jsonify' を選択します
注意、regex 'node.js' のために 'node-js-tokens' を選択します
注意、regex 'node.js' のために 'node-json-parse-helpfulerror' を選択します
注意、regex 'node.js' のために 'node-jsconfig' を選択します
パッケージ 'node-jscoverage' はインストールされていないため削除もされません
パッケージ 'node' はインストールされていないため削除もされません
パッケージ 'node-js-tokens' はインストールされていないため削除もされません
パッケージ 'node-js-yaml' はインストールされていないため削除もされません
パッケージ 'node-jsconfig' はインストールされていないため削除もされません
パッケージ 'node-jsdom' はインストールされていないため削除もされません
パッケージ 'node-jsesc' はインストールされていないため削除もされません
パッケージ 'node-json-localizer' はインストールされていないため削除もされません
パッケージ 'node-json-parse-helpfulerror' はインストールされていないため削除もされません
パッケージ 'node-json-stable-stringify' はインストールされていないため削除もされません
パッケージ 'node-json-stringify-safe' はインストールされていないため削除もされません
パッケージ 'node-json5' はインストールされていないため削除もされません
パッケージ 'node-jsonfile' はインストールされていないため削除もされません
パッケージ 'node-jsonify' はインストールされていないため削除もされません
パッケージ 'node-jsonminify' はインストールされていないため削除もされません
パッケージ 'node-jsonparse' はインストールされていないため削除もされません
パッケージ 'node-jsonselect' はインストールされていないため削除もされません
パッケージ 'node-jsonstream' はインストールされていないため削除もされません
パッケージ 'node-jssip' はインストールされていないため削除もされません
パッケージ 'node-jsv' はインストールされていないため削除もされません
以下のパッケージは「削除」されます:
  nodejs*
アップグレード: 0 個、新規インストール: 0 個、削除: 1 個、保留: 0 個。
この操作後に 83.7 MB のディスク容量が解放されます。
(データベースを読み込んでいます ... 現在 126503 個のファイルとディレクトリがインストールされています。)
nodejs (12.16.2-1nodesource1) を削除しています ...
dpkg: 警告: nodejs の削除中、ディレクトリ '/usr/lib/node_modules/npm/docs' が空でないため削除できませんでした
dpkg: 警告: nodejs の削除中、ディレクトリ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator' が空でないため削除できませんでした
dpkg: 警告: nodejs の削除中、ディレクトリ '/usr/lib/node_modules/npm/lib' が空でないため削除できませんでした
man-db (2.7.6.1-2) のトリガを処理しています ...

インストールされていた古いバージョンが削除されたようです。しかし何やら最後のほうに不穏な警告が出てしまいました。同様の警告はチュートリアルにも出現していますが、問題はないんでしょうか。npmというnodeモジュールがあり、それが削除できなかったということでしょうか。しかし空でないから削除できないというのも私には良く分かりません。現段階では特に成す術がないので先に進みます…。
次のコマンドはautoremoveです。これにより先ほどのpurgeで削除し切れなかった依存パッケージを削除できるそうです(参考)。

pi@raspberrypi:~ $ sudo apt-get autoremove
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。

特に削除はありませんでした。
次のコマンドからチュートリアルで言う「Automatic Node.js installation」のセクションに入ります。これはNode.jsのインストールの前準備みたいなものでしょうか。

pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

================================================================================
================================================================================

                              DEPRECATION WARNING                            

  Node.js 6.x LTS Boron is no longer actively supported!

  You will not receive security or critical stability updates for this version.

  You should migrate to a supported version of Node.js as soon as possible.
  Use the installation script that corresponds to the version of Node.js you
  wish to install. e.g.

   * https://deb.nodesource.com/setup_10.x — Node.js 10 LTS "Dubnium" (recommended)
   * https://deb.nodesource.com/setup_12.x — Node.js 12 LTS "Erbium"

  Please see https://github.com/nodejs/Release for details about which
  version may be appropriate for you.

  The NodeSource Node.js distributions repository contains
  information both about supported versions of Node.js and supported Linux
  distributions. To learn more about usage, see the repository:
    https://github.com/nodesource/distributions

================================================================================
================================================================================

Continuing in 20 seconds ...


## Installing the NodeSource Node.js 6.x LTS Boron repo...


## Populating apt-get cache...

+ apt-get update
取得:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
取得:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
取得:3 https://deb.nodesource.com/node_12.x stretch InRelease [4,585 B]
取得:4 http://archive.raspberrypi.org/debian stretch/main armhf Packages [220 kB]
取得:5 https://deb.nodesource.com/node_12.x stretch/main armhf Packages [775 B]
取得:6 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
11.9 MB を 17秒 で取得しました (667 kB/s)                                      
パッケージリストを読み込んでいます... 完了

## Confirming "stretch" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dists/stretch/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...

+ echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
ヒット:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
ヒット:2 http://archive.raspberrypi.org/debian stretch InRelease
取得:3 https://deb.nodesource.com/node_6.x stretch InRelease [4,608 B]
取得:4 https://deb.nodesource.com/node_6.x stretch/main armhf Packages [1,008 B]
5,616 B を 2秒 で取得しました (2,419 B/s)
パッケージリストを読み込んでいます... 完了

## Run `sudo apt-get install -y nodejs` to install Node.js 6.x LTS Boron and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

Node.js 6.x LTS Boronはサポートされないという注意文が出た後に、NodeSource Node.js 6.x LTS Boron repoなるファイルをインストールし始めました。大丈夫でしょうか(^^;)。
次のコマンドはapt-getのupgradeとupgradeです。

pi@raspberrypi:~ $ sudo apt-get update && sudo apt-get upgrade
ヒット:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
ヒット:2 https://deb.nodesource.com/node_6.x stretch InRelease
ヒット:3 http://archive.raspberrypi.org/debian stretch InRelease
パッケージリストを読み込んでいます... 完了
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
アップグレードパッケージを検出しています... 完了
以下のパッケージはアップグレードされます:
  libldap-2.4-2 libldap-common libtiff5
アップグレード: 3 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
501 kB のアーカイブを取得する必要があります。
この操作後に追加で 3,072 B のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf libldap-common all 2.4.44+dfsg-5+deb9u4 [85.7 kB]
取得:2 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf libldap-2.4-2 armhf 2.4.44+dfsg-5+deb9u4 [196 kB]
取得:3 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf libtiff5 armhf 4.0.8-2+deb9u5 [220 kB]
501 kB を 2秒 で取得しました (187 kB/s)
changelog を読んでいます... 完了
(データベースを読み込んでいます ... 現在 121698 個のファイルとディレクトリがインストールされています。)
.../libldap-common_2.4.44+dfsg-5+deb9u4_all.deb を展開する準備をしています ...
libldap-common (2.4.44+dfsg-5+deb9u4) で (2.4.44+dfsg-5+deb9u1 に) 上書き展開しています ...
.../libldap-2.4-2_2.4.44+dfsg-5+deb9u4_armhf.deb を展開する準備をしています ...
libldap-2.4-2:armhf (2.4.44+dfsg-5+deb9u4) で (2.4.44+dfsg-5+deb9u1 に) 上書き展開しています ...
.../libtiff5_4.0.8-2+deb9u5_armhf.deb を展開する準備をしています ...
libtiff5:armhf (4.0.8-2+deb9u5) で (4.0.8-2+deb9u4 に) 上書き展開しています ...
libldap-common (2.4.44+dfsg-5+deb9u4) を設定しています ...
libtiff5:armhf (4.0.8-2+deb9u5) を設定しています ...
libc-bin (2.24-11+deb9u4) のトリガを処理しています ...
libldap-2.4-2:armhf (2.4.44+dfsg-5+deb9u4) を設定しています ...
man-db (2.7.6.1-2) のトリガを処理しています ...
libc-bin (2.24-11+deb9u4) のトリガを処理しています ...

次のコマンドはnodejsのインストールですね。2個前でインストールしたソースファイル(NodeSource Node.js 6.x LTS Boron repo)を元にインストールされるのではないでしょうか。

pi@raspberrypi:~ $ sudo apt-get install build-essential nodejs -y
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
build-essential はすでに最新バージョン (12.3) です。
以下の追加パッケージがインストールされます:
  libc-ares2 libhttp-parser2.8 libuv1 nodejs-doc
以下のパッケージが新たにインストールされます:
  libc-ares2 libhttp-parser2.8 libuv1 nodejs nodejs-doc
アップグレード: 0 個、新規インストール: 5 個、削除: 0 個、保留: 0 個。
5,087 kB のアーカイブを取得する必要があります。
この操作後に追加で 22.2 MB のディスク容量が消費されます。
取得:1 http://archive.raspberrypi.org/debian stretch/main armhf libc-ares2 armhf 1.14.0-1~bpo9+1 [80.7 kB]
取得:2 http://archive.raspberrypi.org/debian stretch/main armhf libhttp-parser2.8 armhf 2.8.1-1~bpo9+1 [19.3 kB]
取得:3 http://archive.raspberrypi.org/debian stretch/main armhf libuv1 armhf 1.18.0-3~bpo9+1 [86.3 kB]
取得:4 http://archive.raspberrypi.org/debian stretch/main armhf nodejs armhf 8.11.1~dfsg-2~bpo9+1 [4,126 kB]
取得:5 http://archive.raspberrypi.org/debian stretch/main armhf nodejs-doc all 8.11.1~dfsg-2~bpo9+1 [775 kB]
5,087 kB を 8秒 で取得しました (568 kB/s)                                      
以前に未選択のパッケージ libc-ares2:armhf を選択しています。
(データベースを読み込んでいます ... 現在 121698 個のファイルとディレクトリがインストールされています。)
.../libc-ares2_1.14.0-1~bpo9+1_armhf.deb を展開する準備をしています ...
libc-ares2:armhf (1.14.0-1~bpo9+1) を展開しています...
以前に未選択のパッケージ libhttp-parser2.8:armhf を選択しています。
.../libhttp-parser2.8_2.8.1-1~bpo9+1_armhf.deb を展開する準備をしています ...
libhttp-parser2.8:armhf (2.8.1-1~bpo9+1) を展開しています...
以前に未選択のパッケージ libuv1:armhf を選択しています。
.../libuv1_1.18.0-3~bpo9+1_armhf.deb を展開する準備をしています ...
libuv1:armhf (1.18.0-3~bpo9+1) を展開しています...
以前に未選択のパッケージ nodejs を選択しています。
.../nodejs_8.11.1~dfsg-2~bpo9+1_armhf.deb を展開する準備をしています ...
nodejs (8.11.1~dfsg-2~bpo9+1) を展開しています...
以前に未選択のパッケージ nodejs-doc を選択しています。
.../nodejs-doc_8.11.1~dfsg-2~bpo9+1_all.deb を展開する準備をしています ...
nodejs-doc (8.11.1~dfsg-2~bpo9+1) を展開しています...
nodejs-doc (8.11.1~dfsg-2~bpo9+1) を設定しています ...
libuv1:armhf (1.18.0-3~bpo9+1) を設定しています ...
libc-bin (2.24-11+deb9u4) のトリガを処理しています ...
man-db (2.7.6.1-2) のトリガを処理しています ...
libc-ares2:armhf (1.14.0-1~bpo9+1) を設定しています ...
libhttp-parser2.8:armhf (2.8.1-1~bpo9+1) を設定しています ...
nodejs (8.11.1~dfsg-2~bpo9+1) を設定しています ...
update-alternatives: /usr/bin/js (js) を提供するために自動モードで /usr/bin/nodejs を使います
libc-bin (2.24-11+deb9u4) のトリガを処理しています ...

特にエラーは出ていないようです。インストールがうまく行ったかどうかを確認します。

pi@raspberrypi:~ $ npm -v
-bash: npm: コマンドが見つかりません

pi@raspberrypi:~ $ node -v
v8.11.1

npmが入ってなさそうです(^^;)チュートリアルではnodeはv6.10.12、npmはv3.10.10が入っています。次のコマンドはBlynkのインストールですが、npm不在の状態では失敗するのは明らかでしょう。
そもそもnpmとは何なのか良く分かってませんでしたが、こちらの記事によると開発に必要なパッケージ(ライブラリとか、プラグインとか色々)を管理するためのツールです。全ての人が、全く同じ開発環境を再現するためにとても重要な役割を果たしています。とのことです。この記事の内容を全部理解できるくらいの知識が本当は必要だと思います。

pi@raspberrypi:~ $ sudo npm install blynk-library -g
sudo: npm: コマンドが見つかりません

npmの再インストールが必要と思われます。チュートリアル動画のコメント欄を覗いた所、やはり同様の問題が発生した人がいるようでした。
f:id:tara-chang:20200505170214p:plain
素直にapt-get installでnpmをインストールすればよいようです。

pi@raspberrypi:~ $ sudo apt-get install npm
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
  gyp libjs-inherits libjs-node-uuid libssl-dev libssl-doc libuv1-dev
  node-abbrev node-ansi node-ansi-color-table node-archy node-async
  node-balanced-match node-block-stream node-brace-expansion
  node-builtin-modules node-combined-stream node-concat-map node-cookie-jar
  node-delayed-stream node-forever-agent node-form-data node-fs.realpath
  node-fstream node-fstream-ignore node-github-url-from-git node-glob
  node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits
  node-ini node-is-builtin-module node-isexe node-json-stringify-safe
  node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp
  node-mute-stream node-node-uuid node-nopt node-normalize-package-data
  node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap
  node-qs node-read node-read-package-json node-request node-retry node-rimraf
  node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse
  node-spdx-license-ids node-tar node-tunnel-agent node-underscore
  node-validate-npm-package-license node-which node-wrappy node-yallist
  nodejs-dev
提案パッケージ:
  node-hawk node-aws-sign node-oauth-sign node-http-signature debhelper
以下のパッケージが新たにインストールされます:
  gyp libjs-inherits libjs-node-uuid libssl-dev libssl-doc libuv1-dev
  node-abbrev node-ansi node-ansi-color-table node-archy node-async
  node-balanced-match node-block-stream node-brace-expansion
  node-builtin-modules node-combined-stream node-concat-map node-cookie-jar
  node-delayed-stream node-forever-agent node-form-data node-fs.realpath
  node-fstream node-fstream-ignore node-github-url-from-git node-glob
  node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits
  node-ini node-is-builtin-module node-isexe node-json-stringify-safe
  node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp
  node-mute-stream node-node-uuid node-nopt node-normalize-package-data
  node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap
  node-qs node-read node-read-package-json node-request node-retry node-rimraf
  node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse
  node-spdx-license-ids node-tar node-tunnel-agent node-underscore
  node-validate-npm-package-license node-which node-wrappy node-yallist
  nodejs-dev npm
アップグレード: 0 個、新規インストール: 70 個、削除: 0 個、保留: 0 個。
4,438 kB のアーカイブを取得する必要があります。
この操作後に追加で 17.3 MB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://archive.raspberrypi.org/debian stretch/main armhf libuv1-dev armhf 1.18.0-3~bpo9+1 [102 kB]
取得:2 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf gyp all 0.1+20150913git1f374df9-1 [266 kB]
取得:3 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf libjs-node-uuid all 1.4.0-1 [12.6 kB]
取得:4 http://archive.raspberrypi.org/debian stretch/main armhf nodejs-dev armhf 8.11.1~dfsg-2~bpo9+1 [353 kB]
取得:5 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf libssl-dev armhf 1.1.0l-1~deb9u1 [1,387 kB]
取得:6 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf libssl-doc all 1.1.0l-1~deb9u1 [1,480 kB]
取得:7 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-async all 0.8.0-1 [24.6 kB]
取得:8 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-builtin-modules all 1.1.1-1 [3,298 B]
取得:9 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-fs.realpath all 1.0.0-1 [5,522 B]
取得:10 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-hosted-git-info all 2.1.5-1 [5,696 B]
取得:11 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-wrappy all 1.0.2-1 [3,114 B]
取得:12 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-once all 1.4.0-2 [3,356 B]
取得:13 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-inflight all 1.0.6-1 [3,334 B]
取得:14 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-is-builtin-module all 1.0.0-1 [2,860 B]
取得:15 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-isexe all 1.1.2-1 [3,948 B]
取得:16 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-node-uuid all 1.4.0-1 [9,194 B]
取得:17 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-path-is-absolute all 1.0.0-1 [3,266 B]
取得:18 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-pseudomap all 1.0.2-1 [3,504 B]
取得:19 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-spdx-license-ids all 1.2.2-1 [4,754 B]
取得:20 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-spdx-correct all 1.0.2-1 [3,678 B]
取得:21 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-spdx-expression-parse all 1.0.4-1 [12.1 kB]
取得:22 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-underscore all 1.8.3~dfsg-1 [37.6 kB]
取得:23 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-validate-npm-package-license all 3.0.1-1 [3,442 B]
取得:24 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-yallist all 2.0.0-1 [5,362 B]
取得:25 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf libjs-inherits all 2.0.3-1 [2,762 B]
取得:26 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf node-abbrev all 1.0.9-1 [3,668 B]
取得:27 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-ansi all 0.3.0-2 [8,608 B]
取得:28 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-ansi-color-table all 1.0.0-1 [4,408 B]
取得:29 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-archy all 1.0.0-1 [4,052 B]
取得:30 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-balanced-match all 0.4.2-1 [3,982 B]
取得:31 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-inherits all 2.0.3-1 [3,744 B]
取得:32 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-block-stream all 0.0.9-1 [4,488 B]
取得:33 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-concat-map all 0.0.1-1 [3,462 B]
取得:34 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-brace-expansion all 1.1.6-1+deb9u1 [5,788 B]
取得:35 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-delayed-stream all 0.0.5-1 [4,482 B]
取得:36 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-combined-stream all 0.0.5-1 [4,918 B]
取得:37 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-cookie-jar all 0.3.1-1 [3,570 B]
取得:38 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-forever-agent all 0.5.1-1 [3,066 B]
取得:39 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-mime all 1.3.4-1 [11.8 kB]
取得:40 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-form-data all 0.1.0-1 [6,084 B]
取得:41 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-minimatch all 3.0.3-1 [12.8 kB]
取得:42 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-glob all 7.1.1-1 [18.4 kB]
取得:43 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf node-rimraf all 2.5.4-2 [7,482 B]
取得:44 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-mkdirp all 0.5.0-1 [4,634 B]
取得:45 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-graceful-fs all 4.1.11-1 [10.8 kB]
取得:46 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-fstream all 1.0.10-1+deb9u1 [18.2 kB]
取得:47 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf node-fstream-ignore all 0.0.6-2 [5,536 B]
取得:48 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-github-url-from-git all 1.4.0-1 [3,730 B]
取得:49 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-nopt all 3.0.6-3 [9,538 B]
取得:50 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-npmlog all 0.0.4-1 [5,516 B]
取得:51 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-osenv all 0.1.0-1 [3,734 B]
取得:52 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-tunnel-agent all 0.3.1-1 [3,840 B]
取得:53 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf node-json-stringify-safe all 5.0.0-1 [3,356 B]
取得:54 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf node-qs all 2.2.4-1 [8,474 B]
取得:55 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-request all 2.26.1-1 [15.7 kB]
取得:56 http://ftp.tsukuba.wide.ad.jp/Linux/raspbian/raspbian stretch/main armhf node-semver all 5.3.0-1 [21.9 kB]
取得:57 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-tar all 2.2.1-1 [17.6 kB]
取得:58 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-which all 1.2.11-1 [4,946 B]
取得:59 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-gyp all 3.4.0-1 [28.9 kB]
取得:60 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-ini all 1.1.0-1 [4,720 B]
取得:61 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-lockfile all 0.4.1-1 [5,150 B]
取得:62 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-lru-cache all 4.0.2-1 [7,412 B]
取得:63 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-mute-stream all 0.0.7-1 [4,344 B]
取得:64 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-normalize-package-data all 2.3.5-2 [10.5 kB]
取得:65 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-read all 1.0.7-1 [4,540 B]
取得:66 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-read-package-json all 1.2.4-1 [7,740 B]
取得:67 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-retry all 0.6.0-1 [6,124 B]
取得:68 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-sha all 1.2.3-1 [4,064 B]
取得:69 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf node-slide all 1.1.4-1 [6,078 B]
取得:70 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian stretch/main armhf npm all 1.4.21+ds-2 [354 kB]
4,438 kB を 48秒 で取得しました (91.3 kB/s)                                    
パッケージからテンプレートを展開しています: 100%
以前に未選択のパッケージ gyp を選択しています。
(データベースを読み込んでいます ... 現在 121846 個のファイルとディレクトリがインストールされています。)
.../00-gyp_0.1+20150913git1f374df9-1_all.deb を展開する準備をしています ...
gyp (0.1+20150913git1f374df9-1) を展開しています...
以前に未選択のパッケージ libjs-node-uuid を選択しています。
.../01-libjs-node-uuid_1.4.0-1_all.deb を展開する準備をしています ...
libjs-node-uuid (1.4.0-1) を展開しています...
以前に未選択のパッケージ libssl-dev:armhf を選択しています。
.../02-libssl-dev_1.1.0l-1~deb9u1_armhf.deb を展開する準備をしています ...
libssl-dev:armhf (1.1.0l-1~deb9u1) を展開しています...
以前に未選択のパッケージ libssl-doc を選択しています。
.../03-libssl-doc_1.1.0l-1~deb9u1_all.deb を展開する準備をしています ...
libssl-doc (1.1.0l-1~deb9u1) を展開しています...
以前に未選択のパッケージ libuv1-dev:armhf を選択しています。
.../04-libuv1-dev_1.18.0-3~bpo9+1_armhf.deb を展開する準備をしています ...
libuv1-dev:armhf (1.18.0-3~bpo9+1) を展開しています...
以前に未選択のパッケージ node-async を選択しています。
.../05-node-async_0.8.0-1_all.deb を展開する準備をしています ...
node-async (0.8.0-1) を展開しています...
以前に未選択のパッケージ node-builtin-modules を選択しています。
.../06-node-builtin-modules_1.1.1-1_all.deb を展開する準備をしています ...
node-builtin-modules (1.1.1-1) を展開しています...
以前に未選択のパッケージ node-fs.realpath を選択しています。
.../07-node-fs.realpath_1.0.0-1_all.deb を展開する準備をしています ...
node-fs.realpath (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-hosted-git-info を選択しています。
.../08-node-hosted-git-info_2.1.5-1_all.deb を展開する準備をしています ...
node-hosted-git-info (2.1.5-1) を展開しています...
以前に未選択のパッケージ node-wrappy を選択しています。
.../09-node-wrappy_1.0.2-1_all.deb を展開する準備をしています ...
node-wrappy (1.0.2-1) を展開しています...
以前に未選択のパッケージ node-once を選択しています。
.../10-node-once_1.4.0-2_all.deb を展開する準備をしています ...
node-once (1.4.0-2) を展開しています...
以前に未選択のパッケージ node-inflight を選択しています。
.../11-node-inflight_1.0.6-1_all.deb を展開する準備をしています ...
node-inflight (1.0.6-1) を展開しています...
以前に未選択のパッケージ node-is-builtin-module を選択しています。
.../12-node-is-builtin-module_1.0.0-1_all.deb を展開する準備をしています ...
node-is-builtin-module (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-isexe を選択しています。
.../13-node-isexe_1.1.2-1_all.deb を展開する準備をしています ...
node-isexe (1.1.2-1) を展開しています...
以前に未選択のパッケージ node-node-uuid を選択しています。
.../14-node-node-uuid_1.4.0-1_all.deb を展開する準備をしています ...
node-node-uuid (1.4.0-1) を展開しています...
以前に未選択のパッケージ node-path-is-absolute を選択しています。
.../15-node-path-is-absolute_1.0.0-1_all.deb を展開する準備をしています ...
node-path-is-absolute (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-pseudomap を選択しています。
.../16-node-pseudomap_1.0.2-1_all.deb を展開する準備をしています ...
node-pseudomap (1.0.2-1) を展開しています...
以前に未選択のパッケージ node-spdx-license-ids を選択しています。
.../17-node-spdx-license-ids_1.2.2-1_all.deb を展開する準備をしています ...
node-spdx-license-ids (1.2.2-1) を展開しています...
以前に未選択のパッケージ node-spdx-correct を選択しています。
.../18-node-spdx-correct_1.0.2-1_all.deb を展開する準備をしています ...
node-spdx-correct (1.0.2-1) を展開しています...
以前に未選択のパッケージ node-spdx-expression-parse を選択しています。
.../19-node-spdx-expression-parse_1.0.4-1_all.deb を展開する準備をしています ...
node-spdx-expression-parse (1.0.4-1) を展開しています...
以前に未選択のパッケージ node-underscore を選択しています。
.../20-node-underscore_1.8.3~dfsg-1_all.deb を展開する準備をしています ...
node-underscore (1.8.3~dfsg-1) を展開しています...
以前に未選択のパッケージ node-validate-npm-package-license を選択しています。
.../21-node-validate-npm-package-license_3.0.1-1_all.deb を展開する準備をしています ...
node-validate-npm-package-license (3.0.1-1) を展開しています...
以前に未選択のパッケージ node-yallist を選択しています。
.../22-node-yallist_2.0.0-1_all.deb を展開する準備をしています ...
node-yallist (2.0.0-1) を展開しています...
以前に未選択のパッケージ nodejs-dev を選択しています。
.../23-nodejs-dev_8.11.1~dfsg-2~bpo9+1_armhf.deb を展開する準備をしています ...
nodejs-dev (8.11.1~dfsg-2~bpo9+1) を展開しています...
以前に未選択のパッケージ libjs-inherits を選択しています。
.../24-libjs-inherits_2.0.3-1_all.deb を展開する準備をしています ...
libjs-inherits (2.0.3-1) を展開しています...
以前に未選択のパッケージ node-abbrev を選択しています。
.../25-node-abbrev_1.0.9-1_all.deb を展開する準備をしています ...
node-abbrev (1.0.9-1) を展開しています...
以前に未選択のパッケージ node-ansi を選択しています。
.../26-node-ansi_0.3.0-2_all.deb を展開する準備をしています ...
node-ansi (0.3.0-2) を展開しています...
以前に未選択のパッケージ node-ansi-color-table を選択しています。
.../27-node-ansi-color-table_1.0.0-1_all.deb を展開する準備をしています ...
node-ansi-color-table (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-archy を選択しています。
.../28-node-archy_1.0.0-1_all.deb を展開する準備をしています ...
node-archy (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-balanced-match を選択しています。
.../29-node-balanced-match_0.4.2-1_all.deb を展開する準備をしています ...
node-balanced-match (0.4.2-1) を展開しています...
以前に未選択のパッケージ node-inherits を選択しています。
.../30-node-inherits_2.0.3-1_all.deb を展開する準備をしています ...
node-inherits (2.0.3-1) を展開しています...
以前に未選択のパッケージ node-block-stream を選択しています。
.../31-node-block-stream_0.0.9-1_all.deb を展開する準備をしています ...
node-block-stream (0.0.9-1) を展開しています...
以前に未選択のパッケージ node-concat-map を選択しています。
.../32-node-concat-map_0.0.1-1_all.deb を展開する準備をしています ...
node-concat-map (0.0.1-1) を展開しています...
以前に未選択のパッケージ node-brace-expansion を選択しています。
.../33-node-brace-expansion_1.1.6-1+deb9u1_all.deb を展開する準備をしています ...
node-brace-expansion (1.1.6-1+deb9u1) を展開しています...
以前に未選択のパッケージ node-delayed-stream を選択しています。
.../34-node-delayed-stream_0.0.5-1_all.deb を展開する準備をしています ...
node-delayed-stream (0.0.5-1) を展開しています...
以前に未選択のパッケージ node-combined-stream を選択しています。
.../35-node-combined-stream_0.0.5-1_all.deb を展開する準備をしています ...
node-combined-stream (0.0.5-1) を展開しています...
以前に未選択のパッケージ node-cookie-jar を選択しています。
.../36-node-cookie-jar_0.3.1-1_all.deb を展開する準備をしています ...
node-cookie-jar (0.3.1-1) を展開しています...
以前に未選択のパッケージ node-forever-agent を選択しています。
.../37-node-forever-agent_0.5.1-1_all.deb を展開する準備をしています ...
node-forever-agent (0.5.1-1) を展開しています...
以前に未選択のパッケージ node-mime を選択しています。
.../38-node-mime_1.3.4-1_all.deb を展開する準備をしています ...
node-mime (1.3.4-1) を展開しています...
以前に未選択のパッケージ node-form-data を選択しています。
.../39-node-form-data_0.1.0-1_all.deb を展開する準備をしています ...
node-form-data (0.1.0-1) を展開しています...
以前に未選択のパッケージ node-minimatch を選択しています。
.../40-node-minimatch_3.0.3-1_all.deb を展開する準備をしています ...
node-minimatch (3.0.3-1) を展開しています...
以前に未選択のパッケージ node-glob を選択しています。
.../41-node-glob_7.1.1-1_all.deb を展開する準備をしています ...
node-glob (7.1.1-1) を展開しています...
以前に未選択のパッケージ node-rimraf を選択しています。
.../42-node-rimraf_2.5.4-2_all.deb を展開する準備をしています ...
node-rimraf (2.5.4-2) を展開しています...
以前に未選択のパッケージ node-mkdirp を選択しています。
.../43-node-mkdirp_0.5.0-1_all.deb を展開する準備をしています ...
node-mkdirp (0.5.0-1) を展開しています...
以前に未選択のパッケージ node-graceful-fs を選択しています。
.../44-node-graceful-fs_4.1.11-1_all.deb を展開する準備をしています ...
node-graceful-fs (4.1.11-1) を展開しています...
以前に未選択のパッケージ node-fstream を選択しています。
.../45-node-fstream_1.0.10-1+deb9u1_all.deb を展開する準備をしています ...
node-fstream (1.0.10-1+deb9u1) を展開しています...
以前に未選択のパッケージ node-fstream-ignore を選択しています。
.../46-node-fstream-ignore_0.0.6-2_all.deb を展開する準備をしています ...
node-fstream-ignore (0.0.6-2) を展開しています...
以前に未選択のパッケージ node-github-url-from-git を選択しています。
.../47-node-github-url-from-git_1.4.0-1_all.deb を展開する準備をしています ...
node-github-url-from-git (1.4.0-1) を展開しています...
以前に未選択のパッケージ node-nopt を選択しています。
.../48-node-nopt_3.0.6-3_all.deb を展開する準備をしています ...
node-nopt (3.0.6-3) を展開しています...
以前に未選択のパッケージ node-npmlog を選択しています。
.../49-node-npmlog_0.0.4-1_all.deb を展開する準備をしています ...
node-npmlog (0.0.4-1) を展開しています...
以前に未選択のパッケージ node-osenv を選択しています。
.../50-node-osenv_0.1.0-1_all.deb を展開する準備をしています ...
node-osenv (0.1.0-1) を展開しています...
以前に未選択のパッケージ node-tunnel-agent を選択しています。
.../51-node-tunnel-agent_0.3.1-1_all.deb を展開する準備をしています ...
node-tunnel-agent (0.3.1-1) を展開しています...
以前に未選択のパッケージ node-json-stringify-safe を選択しています。
.../52-node-json-stringify-safe_5.0.0-1_all.deb を展開する準備をしています ...
node-json-stringify-safe (5.0.0-1) を展開しています...
以前に未選択のパッケージ node-qs を選択しています。
.../53-node-qs_2.2.4-1_all.deb を展開する準備をしています ...
node-qs (2.2.4-1) を展開しています...
以前に未選択のパッケージ node-request を選択しています。
.../54-node-request_2.26.1-1_all.deb を展開する準備をしています ...
node-request (2.26.1-1) を展開しています...
以前に未選択のパッケージ node-semver を選択しています。
.../55-node-semver_5.3.0-1_all.deb を展開する準備をしています ...
node-semver (5.3.0-1) を展開しています...
以前に未選択のパッケージ node-tar を選択しています。
.../56-node-tar_2.2.1-1_all.deb を展開する準備をしています ...
node-tar (2.2.1-1) を展開しています...
以前に未選択のパッケージ node-which を選択しています。
.../57-node-which_1.2.11-1_all.deb を展開する準備をしています ...
node-which (1.2.11-1) を展開しています...
以前に未選択のパッケージ node-gyp を選択しています。
.../58-node-gyp_3.4.0-1_all.deb を展開する準備をしています ...
node-gyp (3.4.0-1) を展開しています...
以前に未選択のパッケージ node-ini を選択しています。
.../59-node-ini_1.1.0-1_all.deb を展開する準備をしています ...
node-ini (1.1.0-1) を展開しています...
以前に未選択のパッケージ node-lockfile を選択しています。
.../60-node-lockfile_0.4.1-1_all.deb を展開する準備をしています ...
node-lockfile (0.4.1-1) を展開しています...
以前に未選択のパッケージ node-lru-cache を選択しています。
.../61-node-lru-cache_4.0.2-1_all.deb を展開する準備をしています ...
node-lru-cache (4.0.2-1) を展開しています...
以前に未選択のパッケージ node-mute-stream を選択しています。
.../62-node-mute-stream_0.0.7-1_all.deb を展開する準備をしています ...
node-mute-stream (0.0.7-1) を展開しています...
以前に未選択のパッケージ node-normalize-package-data を選択しています。
.../63-node-normalize-package-data_2.3.5-2_all.deb を展開する準備をしています ...
node-normalize-package-data (2.3.5-2) を展開しています...
以前に未選択のパッケージ node-read を選択しています。
.../64-node-read_1.0.7-1_all.deb を展開する準備をしています ...
node-read (1.0.7-1) を展開しています...
以前に未選択のパッケージ node-read-package-json を選択しています。
.../65-node-read-package-json_1.2.4-1_all.deb を展開する準備をしています ...
node-read-package-json (1.2.4-1) を展開しています...
以前に未選択のパッケージ node-retry を選択しています。
.../66-node-retry_0.6.0-1_all.deb を展開する準備をしています ...
node-retry (0.6.0-1) を展開しています...
以前に未選択のパッケージ node-sha を選択しています。
.../67-node-sha_1.2.3-1_all.deb を展開する準備をしています ...
node-sha (1.2.3-1) を展開しています...
以前に未選択のパッケージ node-slide を選択しています。
.../68-node-slide_1.1.4-1_all.deb を展開する準備をしています ...
node-slide (1.1.4-1) を展開しています...
以前に未選択のパッケージ npm を選択しています。
.../69-npm_1.4.21+ds-2_all.deb を展開する準備をしています ...
npm (1.4.21+ds-2) を展開しています...
node-lockfile (0.4.1-1) を設定しています ...
node-spdx-expression-parse (1.0.4-1) を設定しています ...
node-qs (2.2.4-1) を設定しています ...
node-osenv (0.1.0-1) を設定しています ...
node-ansi (0.3.0-2) を設定しています ...
libjs-node-uuid (1.4.0-1) を設定しています ...
node-hosted-git-info (2.1.5-1) を設定しています ...
node-delayed-stream (0.0.5-1) を設定しています ...
libjs-inherits (2.0.3-1) を設定しています ...
node-tunnel-agent (0.3.1-1) を設定しています ...
node-balanced-match (0.4.2-1) を設定しています ...
node-node-uuid (1.4.0-1) を設定しています ...
node-yallist (2.0.0-1) を設定しています ...
node-slide (1.1.4-1) を設定しています ...
libssl-dev:armhf (1.1.0l-1~deb9u1) を設定しています ...
node-github-url-from-git (1.4.0-1) を設定しています ...
node-pseudomap (1.0.2-1) を設定しています ...
node-spdx-license-ids (1.2.2-1) を設定しています ...
node-combined-stream (0.0.5-1) を設定しています ...
node-wrappy (1.0.2-1) を設定しています ...
node-mime (1.3.4-1) を設定しています ...
node-abbrev (1.0.9-1) を設定しています ...
node-semver (5.3.0-1) を設定しています ...
node-retry (0.6.0-1) を設定しています ...
node-forever-agent (0.5.1-1) を設定しています ...
node-underscore (1.8.3~dfsg-1) を設定しています ...
gyp (0.1+20150913git1f374df9-1) を設定しています ...
node-json-stringify-safe (5.0.0-1) を設定しています ...
node-inherits (2.0.3-1) を設定しています ...
node-graceful-fs (4.1.11-1) を設定しています ...
node-archy (1.0.0-1) を設定しています ...
node-path-is-absolute (1.0.0-1) を設定しています ...
node-builtin-modules (1.1.1-1) を設定しています ...
man-db (2.7.6.1-2) のトリガを処理しています ...
node-isexe (1.1.2-1) を設定しています ...
libssl-doc (1.1.0l-1~deb9u1) を設定しています ...
node-spdx-correct (1.0.2-1) を設定しています ...
node-async (0.8.0-1) を設定しています ...
node-cookie-jar (0.3.1-1) を設定しています ...
node-mute-stream (0.0.7-1) を設定しています ...
node-form-data (0.1.0-1) を設定しています ...
node-request (2.26.1-1) を設定しています ...
node-concat-map (0.0.1-1) を設定しています ...
node-ini (1.1.0-1) を設定しています ...
node-mkdirp (0.5.0-1) を設定しています ...
node-once (1.4.0-2) を設定しています ...
node-sha (1.2.3-1) を設定しています ...
node-fs.realpath (1.0.0-1) を設定しています ...
libuv1-dev:armhf (1.18.0-3~bpo9+1) を設定しています ...
node-brace-expansion (1.1.6-1+deb9u1) を設定しています ...
node-ansi-color-table (1.0.0-1) を設定しています ...
node-npmlog (0.0.4-1) を設定しています ...
node-is-builtin-module (1.0.0-1) を設定しています ...
node-nopt (3.0.6-3) を設定しています ...
node-which (1.2.11-1) を設定しています ...
node-lru-cache (4.0.2-1) を設定しています ...
node-block-stream (0.0.9-1) を設定しています ...
node-validate-npm-package-license (3.0.1-1) を設定しています ...
node-inflight (1.0.6-1) を設定しています ...
node-read (1.0.7-1) を設定しています ...
node-minimatch (3.0.3-1) を設定しています ...
nodejs-dev (8.11.1~dfsg-2~bpo9+1) を設定しています ...
node-normalize-package-data (2.3.5-2) を設定しています ...
node-glob (7.1.1-1) を設定しています ...
node-rimraf (2.5.4-2) を設定しています ...
node-read-package-json (1.2.4-1) を設定しています ...
node-fstream (1.0.10-1+deb9u1) を設定しています ...
node-fstream-ignore (0.0.6-2) を設定しています ...
node-tar (2.2.1-1) を設定しています ...
node-gyp (3.4.0-1) を設定しています ...
npm (1.4.21+ds-2) を設定しています ...====

エラー出ず終わりました。バージョンチェックの結果は

pi@raspberrypi:~ $ npm -v
1.4.21
(node:3126) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

んん?npmは入ったようですがWarningが出てしまいました。一応Blynkを入れてみます。

pi@raspberrypi:~ $ sudo npm install blynk-library -g
(node:2907) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
/usr/local/bin/blynk-client -> /usr/local/lib/node_modules/blynk-library/bin/blynk-client.js
/usr/local/bin/blynk-ctrl -> /usr/local/lib/node_modules/blynk-library/bin/blynk-ctrl.js
blynk-library@0.5.4 /usr/local/lib/node_modules/blynk-library

やっぱり同様のWarningが出ていますね…。ググったところnpmのバージョンが古すぎるのが問題のようです。

npmの再インストール

とりあえず一つ目の処方として次のコードでnpmのインストールを試みます。
Node.js - npmのアップデートができない|teratail

pi@raspberrypi:~ $ npm i -g npm
(node:4035) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! tar.unpack untar error /home/pi/.npm/npm/6.14.4/package.tgz
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm'
npm ERR!  { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm'
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/local/lib/node_modules/npm',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/usr/local/lib/node_modules/npm',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack: 
npm ERR!    [ '/usr/lib/nodejs/fstream/lib/dir-writer.js:35:25',
npm ERR!      '/usr/lib/nodejs/mkdirp/index.js:46:53',
npm ERR!      'FSReqWrap.oncomplete (fs.js:152:21)' ] }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "i" "-g" "npm"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! syscall mkdir
npm ERR! fstream_path /usr/local/lib/node_modules/npm
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npm'
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/dir-writer.js:35:25
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53
npm ERR! fstream_stack FSReqWrap.oncomplete (fs.js:152:21)
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0

こちらの方法ではダメだったようです。別の方法を探します。
Raspberry PiにNode.jsとnpmの最新版をインストールする - Qiita
同様のエラーと対策について詳しく報告されています。これは行けそうです。一つずつ実行していきます。

pi@raspberrypi:~ $ sudo apt-get update
ヒット:1 https://deb.nodesource.com/node_6.x stretch InRelease
ヒット:2 http://archive.raspberrypi.org/debian stretch InRelease
ヒット:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease            
パッケージリストを読み込んでいます... 完了
pi@raspberrypi:~ $ sudo apt-get install -y nodejs npm
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
npm はすでに最新バージョン (1.4.21+ds-2) です。
nodejs はすでに最新バージョン (8.11.1~dfsg-2~bpo9+1) です。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
pi@raspberrypi:~ $ sudo npm cache clean
(node:4714) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
pi@raspberrypi:~ $ sudo npm install npm n -g
(node:4753) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
npm WARN package.json path-is-inside@1.0.2 No README data
npm WARN package.json sorted-object@2.0.1 No README data
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm WARN package.json config-chain@1.1.12 No license field.
npm WARN package.json cyclist@0.2.2 No license field.
npm WARN package.json json-schema@0.2.3 No license field.
npm WARN package.json punycode@1.4.1 punycode is also the name of a node core module.
npm WARN package.json qrcode-terminal@0.12.0 No license field.
npm WARN package.json string_decoder@1.3.0 string_decoder is also the name of a node core module.
n@6.5.1 /usr/local/lib/node_modules/n

npm@6.14.4 /usr/local/lib/node_modules/npm
pi@raspberrypi:~ $ sudo n stable

  installing : node-v12.16.3
       mkdir : /usr/local/n/versions/node/12.16.3
       fetch : https://nodejs.org/dist/v12.16.3/node-v12.16.3-linux-armv7l.tar.xz
   installed : v12.16.3 (with npm 6.14.4)

Note: the node command changed location and the old location may be remembered in your current shell.
         old : /usr/bin/node
         new : /usr/local/bin/node
To reset the command location hash either start a new shell, or execute PATH="$PATH"

途中またWarningが出ていますね‥。とりあえずバージョンチェックします。

pi@raspberrypi:~ $ node -v
v8.11.1
pi@raspberrypi:~ $ npm -v
1.4.21
(node:4917) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

まだインストールが反映されていないようなので、ターミナルを再起動したのちもう一度チェックします。

pi@raspberrypi:~ $ exit
ログアウト

pi@raspberrypi:~ $ npm -v
6.14.4

pi@raspberrypi:~ $ node -v
v12.16.3

npm6.14.をインスタトール出来たっぽいです。
Blynkをインストールします。

pi@raspberrypi:~ $ sudo npm install blynk-library -g
/usr/local/bin/blynk-client -> /usr/local/lib/node_modules/blynk-library/bin/blynk-client.js
/usr/local/bin/blynk-ctrl -> /usr/local/lib/node_modules/blynk-library/bin/blynk-ctrl.js
+ blynk-library@0.5.4
updated 1 package in 2.108s

pi@raspberrypi:~ $ sudo npm install onoff -g
+ onoff@6.0.0
updated 1 package and moved 3 packages in 3.073s

エラーなくインストールできました!!
Blynkサーバーを立ち上げます。

pi@raspberrypi:~ $ export PATH=$PATH:/opt/nodejs/bin/
pi@raspberrypi:~ $ unset NODE_PATH
pi@raspberrypi:~ $ blynk-client <トークン>

    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/

  Give Blynk a Github star! => https://github.com/vshymanskyy/blynk-library-js

Connecting to: blynk-cloud.com 443
SSL authorization...
Connected
Authorized
Blynk ready.

無事立ち上がりました!!スマホ側でもonlineと表示されており、接続がうまく行っているようです。
次はアプリのBlynkからGPIB18に信号を送ります。これでLEDが光るはずです。

No direct pin operations available.
Maybe you need to install mraa or onoff modules?

No direct pin operations available.
Maybe you need to install mraa or onoff modules?

アプリでスイッチを押すと、ターミナルにこのようなエラーが表示されるだけでLEDは光りませんでした。
コネクション自体は上手く行ってるのであと一歩というような感じはします。エラー文でググると同様の報告はありましたが、遂に解決には至りませんでした…。

別のアプローチ

もはや何が問題だったのか分かりませんが、別な方法でBlynkをインストールするとあっさりとLチカが成功しました。
こちらの記事にまとめています。

学んだこと

・公式のチュートリアル通りに進めたとしても成功するとは限らない。
・根本的な部分を理解していないと苦労する。別の方法でうまく行ったとしても自分の知識レベルの問題は解決していない。