環境構築
VM環境 : Oracle VirtualBox v5.1.0
VM上OS : ubuntu 16.04LTS Desktop
手順
準備
手順に入る前に下記コマンドを実行し、VM上OS環境を最新化した。
sudo apt-get update
sudo apt-get upgrade
Node.jsのインストール
何はともあれ apt-get で Node.jsをインストールする。
$ sudo apt-get install nodejs
[sudo] {username} のパスワード:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
libpango1.0-0 libpangox-1.0-0
これを削除するには 'sudo apt autoremove' を利用してください。
以下の追加パッケージがインストールされます:
libuv1
以下のパッケージが新たにインストールされます:
libuv1 nodejs
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 4 個。
3,218 kB のアーカイブを取得する必要があります。
この操作後に追加で 13.4 MB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 libuv1 amd64 1.8.0-1 [57.4 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 nodejs amd64 4.2.6~dfsg-1ubuntu4.1 [3,161 kB]
3,218 kB を 0秒 で取得しました (6,063 kB/s)
以前に未選択のパッケージ libuv1:amd64 を選択しています。
(データベースを読み込んでいます ... 現在 174688 個のファイルとディレクトリがインストールされています。)
.../libuv1_1.8.0-1_amd64.deb を展開する準備をしています ...
libuv1:amd64 (1.8.0-1) を展開しています...
以前に未選択のパッケージ nodejs を選択しています。
.../nodejs_4.2.6~dfsg-1ubuntu4.1_amd64.deb を展開する準備をしています ...
nodejs (4.2.6~dfsg-1ubuntu4.1) を展開しています...
libc-bin (2.23-0ubuntu3) のトリガを処理しています ...
doc-base (0.10.7) のトリガを処理しています ...
doc-base ファイルを 1 個追加 を処理中...
man-db (2.7.5-1) のトリガを処理しています ...
libuv1:amd64 (1.8.0-1) を設定しています ...
nodejs (4.2.6~dfsg-1ubuntu4.1) を設定しています ...
update-alternatives: /usr/bin/js (js) を提供するために自動モードで /usr/bin/nodejs を使います
libc-bin (2.23-0ubuntu3) のトリガを処理しています ...
npmのインストール
Node.jsのライブラリやパッケージを管理することができるツールをインストールする。
$ sudo apt-get install npm
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
libpango1.0-0 libpangox-1.0-0
これを削除するには 'sudo apt autoremove' を利用してください。
以下の追加パッケージがインストールされます:
gyp javascript-common libjs-inherits libjs-jquery libjs-node-uuid libjs-underscore libssl-dev libssl-doc libuv1-dev node-abbrev
node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp
node-inherits node-ini 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-qs node-read node-read-package-json
node-request node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which
nodejs-dev python-pkg-resources zlib1g-dev
提案パッケージ:
apache2 | lighttpd | httpd node-hawk node-aws-sign node-oauth-sign node-http-signature debhelper python-setuptools
以下のパッケージが新たにインストールされます:
gyp javascript-common libjs-inherits libjs-jquery libjs-node-uuid libjs-underscore libssl-dev libssl-doc libuv1-dev node-abbrev
node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream
node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp
node-inherits node-ini 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-qs node-read node-read-package-json
node-request node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which
nodejs-dev npm python-pkg-resources zlib1g-dev
アップグレード: 0 個、新規インストール: 59 個、削除: 0 個、保留: 4 個。
5,504 kB のアーカイブを取得する必要があります。
この操作後に追加で 28.1 MB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 python-pkg-resources all 20.7.0-1 [108 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 gyp all 0.1+20150913git1f374df9-1ubuntu1 [265 kB]
取得:3 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 javascript-common all 11 [6,066 B]
取得:4 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 libjs-jquery all 1.11.3+dfsg-4 [161 kB]
取得:5 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 libjs-node-uuid all 1.4.0-1 [11.1 kB]
取得:6 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 libjs-underscore all 1.7.0~dfsg-1ubuntu1 [46.7 kB]
取得:7 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 zlib1g-dev amd64 1:1.2.8.dfsg-2ubuntu4 [168 kB]
取得:8 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl-dev amd64 1.0.2g-1ubuntu4.2 [1,393 kB]
取得:9 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libssl-doc all 1.0.2g-1ubuntu4.2 [1,078 kB]
取得:10 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 libuv1-dev amd64 1.8.0-1 [74.7 kB]
取得:11 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-async all 0.8.0-1 [22.2 kB]
取得:12 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-node-uuid all 1.4.0-1 [2,530 B]
取得:13 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-underscore all 1.7.0~dfsg-1ubuntu1 [3,780 B]
取得:14 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 libjs-inherits all 2.0.1-3 [2,794 B]
取得:15 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-abbrev all 1.0.5-2 [3,592 B]
取得:16 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-ansi all 0.3.0-2 [8,590 B]
取得:17 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-ansi-color-table all 1.0.0-1 [4,478 B]
取得:18 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-archy all 0.0.2-1 [3,660 B]
取得:19 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-inherits all 2.0.1-3 [3,060 B]
取得:20 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-block-stream all 0.0.7-1 [4,832 B]
取得:21 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-delayed-stream all 0.0.5-1 [4,750 B]
取得:22 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-combined-stream all 0.0.5-1 [4,958 B]
取得:23 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-cookie-jar all 0.3.1-1 [3,746 B]
取得:24 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-forever-agent all 0.5.1-1 [3,194 B]
取得:25 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-mime all 1.3.4-1 [11.9 kB]
取得:26 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-form-data all 0.1.0-1 [6,412 B]
取得:27 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-rimraf all 2.2.8-1 [5,702 B]
取得:28 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-mkdirp all 0.5.0-1 [4,690 B]
取得:29 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-graceful-fs all 3.0.2-1 [7,102 B]
取得:30 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-fstream all 0.1.24-1 [19.5 kB]
取得:31 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-lru-cache all 2.3.1-1 [5,674 B]
取得:32 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-sigmund all 1.0.0-1 [3,818 B]
取得:33 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-minimatch all 1.0.0-1 [14.0 kB]
取得:34 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-fstream-ignore all 0.0.6-2 [5,586 B]
取得:35 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-github-url-from-git all 1.1.1-1 [3,138 B]
取得:36 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-once all 1.1.1-1 [2,608 B]
取得:37 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-glob all 4.0.5-1 [13.2 kB]
取得:38 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 nodejs-dev amd64 4.2.6~dfsg-1ubuntu4.1 [265 kB]
取得:39 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-nopt all 3.0.1-1 [9,544 B]
取得:40 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-npmlog all 0.0.4-1 [5,844 B]
取得:41 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-osenv all 0.1.0-1 [3,772 B]
取得:42 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-tunnel-agent all 0.3.1-1 [4,018 B]
取得:43 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-json-stringify-safe all 5.0.0-1 [3,544 B]
取得:44 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-qs all 2.2.4-1 [7,574 B]
取得:45 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-request all 2.26.1-1 [14.5 kB]
取得:46 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-semver all 2.1.0-2 [16.2 kB]
取得:47 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-tar all 1.0.3-2 [17.5 kB]
取得:48 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-which all 1.0.5-2 [3,678 B]
取得:49 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-gyp all 3.0.3-2ubuntu1 [23.2 kB]
取得:50 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-ini all 1.1.0-1 [4,770 B]
取得:51 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-lockfile all 0.4.1-1 [5,450 B]
取得:52 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-mute-stream all 0.0.4-1 [4,096 B]
取得:53 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-normalize-package-data all 0.2.2-1 [9,286 B]
取得:54 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-read all 1.0.5-1 [4,314 B]
取得:55 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-read-package-json all 1.2.4-1 [7,780 B]
取得:56 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-retry all 0.6.0-1 [6,172 B]
取得:57 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-sha all 1.2.3-1 [4,272 B]
取得:58 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 node-slide all 1.1.4-1 [6,118 B]
取得:59 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 npm all 3.5.2-0ubuntu4 [1,586 kB]
5,504 kB を 0秒 で取得しました (6,882 kB/s)
パッケージからテンプレートを展開しています: 100%
以前に未選択のパッケージ python-pkg-resources を選択しています。
(データベースを読み込んでいます ... 現在 174750 個のファイルとディレクトリがインストールされています。)
.../python-pkg-resources_20.7.0-1_all.deb を展開する準備をしています ...
python-pkg-resources (20.7.0-1) を展開しています...
以前に未選択のパッケージ gyp を選択しています。
.../gyp_0.1+20150913git1f374df9-1ubuntu1_all.deb を展開する準備をしています ...
gyp (0.1+20150913git1f374df9-1ubuntu1) を展開しています...
以前に未選択のパッケージ javascript-common を選択しています。
.../javascript-common_11_all.deb を展開する準備をしています ...
javascript-common (11) を展開しています...
以前に未選択のパッケージ libjs-jquery を選択しています。
.../libjs-jquery_1.11.3+dfsg-4_all.deb を展開する準備をしています ...
libjs-jquery (1.11.3+dfsg-4) を展開しています...
以前に未選択のパッケージ libjs-node-uuid を選択しています。
.../libjs-node-uuid_1.4.0-1_all.deb を展開する準備をしています ...
libjs-node-uuid (1.4.0-1) を展開しています...
以前に未選択のパッケージ libjs-underscore を選択しています。
.../libjs-underscore_1.7.0~dfsg-1ubuntu1_all.deb を展開する準備をしています ...
libjs-underscore (1.7.0~dfsg-1ubuntu1) を展開しています...
以前に未選択のパッケージ zlib1g-dev:amd64 を選択しています。
.../zlib1g-dev_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb を展開する準備をしています ...
zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4) を展開しています...
以前に未選択のパッケージ libssl-dev:amd64 を選択しています。
.../libssl-dev_1.0.2g-1ubuntu4.2_amd64.deb を展開する準備をしています ...
libssl-dev:amd64 (1.0.2g-1ubuntu4.2) を展開しています...
以前に未選択のパッケージ libssl-doc を選択しています。
.../libssl-doc_1.0.2g-1ubuntu4.2_all.deb を展開する準備をしています ...
libssl-doc (1.0.2g-1ubuntu4.2) を展開しています...
以前に未選択のパッケージ libuv1-dev:amd64 を選択しています。
.../libuv1-dev_1.8.0-1_amd64.deb を展開する準備をしています ...
libuv1-dev:amd64 (1.8.0-1) を展開しています...
以前に未選択のパッケージ node-async を選択しています。
.../node-async_0.8.0-1_all.deb を展開する準備をしています ...
node-async (0.8.0-1) を展開しています...
以前に未選択のパッケージ node-node-uuid を選択しています。
.../node-node-uuid_1.4.0-1_all.deb を展開する準備をしています ...
node-node-uuid (1.4.0-1) を展開しています...
以前に未選択のパッケージ node-underscore を選択しています。
.../node-underscore_1.7.0~dfsg-1ubuntu1_all.deb を展開する準備をしています ...
node-underscore (1.7.0~dfsg-1ubuntu1) を展開しています...
以前に未選択のパッケージ libjs-inherits を選択しています。
.../libjs-inherits_2.0.1-3_all.deb を展開する準備をしています ...
libjs-inherits (2.0.1-3) を展開しています...
以前に未選択のパッケージ node-abbrev を選択しています。
.../node-abbrev_1.0.5-2_all.deb を展開する準備をしています ...
node-abbrev (1.0.5-2) を展開しています...
以前に未選択のパッケージ node-ansi を選択しています。
.../node-ansi_0.3.0-2_all.deb を展開する準備をしています ...
node-ansi (0.3.0-2) を展開しています...
以前に未選択のパッケージ node-ansi-color-table を選択しています。
.../node-ansi-color-table_1.0.0-1_all.deb を展開する準備をしています ...
node-ansi-color-table (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-archy を選択しています。
.../node-archy_0.0.2-1_all.deb を展開する準備をしています ...
node-archy (0.0.2-1) を展開しています...
以前に未選択のパッケージ node-inherits を選択しています。
.../node-inherits_2.0.1-3_all.deb を展開する準備をしています ...
node-inherits (2.0.1-3) を展開しています...
以前に未選択のパッケージ node-block-stream を選択しています。
.../node-block-stream_0.0.7-1_all.deb を展開する準備をしています ...
node-block-stream (0.0.7-1) を展開しています...
以前に未選択のパッケージ node-delayed-stream を選択しています。
.../node-delayed-stream_0.0.5-1_all.deb を展開する準備をしています ...
node-delayed-stream (0.0.5-1) を展開しています...
以前に未選択のパッケージ node-combined-stream を選択しています。
.../node-combined-stream_0.0.5-1_all.deb を展開する準備をしています ...
node-combined-stream (0.0.5-1) を展開しています...
以前に未選択のパッケージ node-cookie-jar を選択しています。
.../node-cookie-jar_0.3.1-1_all.deb を展開する準備をしています ...
node-cookie-jar (0.3.1-1) を展開しています...
以前に未選択のパッケージ node-forever-agent を選択しています。
.../node-forever-agent_0.5.1-1_all.deb を展開する準備をしています ...
node-forever-agent (0.5.1-1) を展開しています...
以前に未選択のパッケージ node-mime を選択しています。
.../node-mime_1.3.4-1_all.deb を展開する準備をしています ...
node-mime (1.3.4-1) を展開しています...
以前に未選択のパッケージ node-form-data を選択しています。
.../node-form-data_0.1.0-1_all.deb を展開する準備をしています ...
node-form-data (0.1.0-1) を展開しています...
以前に未選択のパッケージ node-rimraf を選択しています。
.../node-rimraf_2.2.8-1_all.deb を展開する準備をしています ...
node-rimraf (2.2.8-1) を展開しています...
以前に未選択のパッケージ node-mkdirp を選択しています。
.../node-mkdirp_0.5.0-1_all.deb を展開する準備をしています ...
node-mkdirp (0.5.0-1) を展開しています...
以前に未選択のパッケージ node-graceful-fs を選択しています。
.../node-graceful-fs_3.0.2-1_all.deb を展開する準備をしています ...
node-graceful-fs (3.0.2-1) を展開しています...
以前に未選択のパッケージ node-fstream を選択しています。
.../node-fstream_0.1.24-1_all.deb を展開する準備をしています ...
node-fstream (0.1.24-1) を展開しています...
以前に未選択のパッケージ node-lru-cache を選択しています。
.../node-lru-cache_2.3.1-1_all.deb を展開する準備をしています ...
node-lru-cache (2.3.1-1) を展開しています...
以前に未選択のパッケージ node-sigmund を選択しています。
.../node-sigmund_1.0.0-1_all.deb を展開する準備をしています ...
node-sigmund (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-minimatch を選択しています。
.../node-minimatch_1.0.0-1_all.deb を展開する準備をしています ...
node-minimatch (1.0.0-1) を展開しています...
以前に未選択のパッケージ node-fstream-ignore を選択しています。
.../node-fstream-ignore_0.0.6-2_all.deb を展開する準備をしています ...
node-fstream-ignore (0.0.6-2) を展開しています...
以前に未選択のパッケージ node-github-url-from-git を選択しています。
.../node-github-url-from-git_1.1.1-1_all.deb を展開する準備をしています ...
node-github-url-from-git (1.1.1-1) を展開しています...
以前に未選択のパッケージ node-once を選択しています。
.../node-once_1.1.1-1_all.deb を展開する準備をしています ...
node-once (1.1.1-1) を展開しています...
以前に未選択のパッケージ node-glob を選択しています。
.../node-glob_4.0.5-1_all.deb を展開する準備をしています ...
node-glob (4.0.5-1) を展開しています...
以前に未選択のパッケージ nodejs-dev を選択しています。
.../nodejs-dev_4.2.6~dfsg-1ubuntu4.1_amd64.deb を展開する準備をしています ...
nodejs-dev (4.2.6~dfsg-1ubuntu4.1) を展開しています...
以前に未選択のパッケージ node-nopt を選択しています。
.../node-nopt_3.0.1-1_all.deb を展開する準備をしています ...
node-nopt (3.0.1-1) を展開しています...
以前に未選択のパッケージ node-npmlog を選択しています。
.../node-npmlog_0.0.4-1_all.deb を展開する準備をしています ...
node-npmlog (0.0.4-1) を展開しています...
以前に未選択のパッケージ node-osenv を選択しています。
.../node-osenv_0.1.0-1_all.deb を展開する準備をしています ...
node-osenv (0.1.0-1) を展開しています...
以前に未選択のパッケージ node-tunnel-agent を選択しています。
.../node-tunnel-agent_0.3.1-1_all.deb を展開する準備をしています ...
node-tunnel-agent (0.3.1-1) を展開しています...
以前に未選択のパッケージ node-json-stringify-safe を選択しています。
.../node-json-stringify-safe_5.0.0-1_all.deb を展開する準備をしています ...
node-json-stringify-safe (5.0.0-1) を展開しています...
以前に未選択のパッケージ node-qs を選択しています。
.../node-qs_2.2.4-1_all.deb を展開する準備をしています ...
node-qs (2.2.4-1) を展開しています...
以前に未選択のパッケージ node-request を選択しています。
.../node-request_2.26.1-1_all.deb を展開する準備をしています ...
node-request (2.26.1-1) を展開しています...
以前に未選択のパッケージ node-semver を選択しています。
.../node-semver_2.1.0-2_all.deb を展開する準備をしています ...
node-semver (2.1.0-2) を展開しています...
以前に未選択のパッケージ node-tar を選択しています。
.../node-tar_1.0.3-2_all.deb を展開する準備をしています ...
node-tar (1.0.3-2) を展開しています...
以前に未選択のパッケージ node-which を選択しています。
.../node-which_1.0.5-2_all.deb を展開する準備をしています ...
node-which (1.0.5-2) を展開しています...
以前に未選択のパッケージ node-gyp を選択しています。
.../node-gyp_3.0.3-2ubuntu1_all.deb を展開する準備をしています ...
node-gyp (3.0.3-2ubuntu1) を展開しています...
以前に未選択のパッケージ node-ini を選択しています。
.../node-ini_1.1.0-1_all.deb を展開する準備をしています ...
node-ini (1.1.0-1) を展開しています...
以前に未選択のパッケージ node-lockfile を選択しています。
.../node-lockfile_0.4.1-1_all.deb を展開する準備をしています ...
node-lockfile (0.4.1-1) を展開しています...
以前に未選択のパッケージ node-mute-stream を選択しています。
.../node-mute-stream_0.0.4-1_all.deb を展開する準備をしています ...
node-mute-stream (0.0.4-1) を展開しています...
以前に未選択のパッケージ node-normalize-package-data を選択しています。
.../node-normalize-package-data_0.2.2-1_all.deb を展開する準備をしています ...
node-normalize-package-data (0.2.2-1) を展開しています...
以前に未選択のパッケージ node-read を選択しています。
.../node-read_1.0.5-1_all.deb を展開する準備をしています ...
node-read (1.0.5-1) を展開しています...
以前に未選択のパッケージ node-read-package-json を選択しています。
.../node-read-package-json_1.2.4-1_all.deb を展開する準備をしています ...
node-read-package-json (1.2.4-1) を展開しています...
以前に未選択のパッケージ node-retry を選択しています。
.../node-retry_0.6.0-1_all.deb を展開する準備をしています ...
node-retry (0.6.0-1) を展開しています...
以前に未選択のパッケージ node-sha を選択しています。
.../node-sha_1.2.3-1_all.deb を展開する準備をしています ...
node-sha (1.2.3-1) を展開しています...
以前に未選択のパッケージ node-slide を選択しています。
.../node-slide_1.1.4-1_all.deb を展開する準備をしています ...
node-slide (1.1.4-1) を展開しています...
以前に未選択のパッケージ npm を選択しています。
.../npm_3.5.2-0ubuntu4_all.deb を展開する準備をしています ...
npm (3.5.2-0ubuntu4) を展開しています...
man-db (2.7.5-1) のトリガを処理しています ...
doc-base (0.10.7) のトリガを処理しています ...
doc-base ファイルを 3 個追加 を処理中...
python-pkg-resources (20.7.0-1) を設定しています ...
gyp (0.1+20150913git1f374df9-1ubuntu1) を設定しています ...
javascript-common (11) を設定しています ...
libjs-jquery (1.11.3+dfsg-4) を設定しています ...
libjs-node-uuid (1.4.0-1) を設定しています ...
libjs-underscore (1.7.0~dfsg-1ubuntu1) を設定しています ...
zlib1g-dev:amd64 (1:1.2.8.dfsg-2ubuntu4) を設定しています ...
libssl-dev:amd64 (1.0.2g-1ubuntu4.2) を設定しています ...
libssl-doc (1.0.2g-1ubuntu4.2) を設定しています ...
libuv1-dev:amd64 (1.8.0-1) を設定しています ...
node-async (0.8.0-1) を設定しています ...
node-node-uuid (1.4.0-1) を設定しています ...
node-underscore (1.7.0~dfsg-1ubuntu1) を設定しています ...
libjs-inherits (2.0.1-3) を設定しています ...
node-abbrev (1.0.5-2) を設定しています ...
node-ansi (0.3.0-2) を設定しています ...
node-ansi-color-table (1.0.0-1) を設定しています ...
node-archy (0.0.2-1) を設定しています ...
node-inherits (2.0.1-3) を設定しています ...
node-block-stream (0.0.7-1) を設定しています ...
node-delayed-stream (0.0.5-1) を設定しています ...
node-combined-stream (0.0.5-1) を設定しています ...
node-cookie-jar (0.3.1-1) を設定しています ...
node-forever-agent (0.5.1-1) を設定しています ...
node-mime (1.3.4-1) を設定しています ...
node-form-data (0.1.0-1) を設定しています ...
node-rimraf (2.2.8-1) を設定しています ...
node-mkdirp (0.5.0-1) を設定しています ...
node-graceful-fs (3.0.2-1) を設定しています ...
node-fstream (0.1.24-1) を設定しています ...
node-lru-cache (2.3.1-1) を設定しています ...
node-sigmund (1.0.0-1) を設定しています ...
node-minimatch (1.0.0-1) を設定しています ...
node-fstream-ignore (0.0.6-2) を設定しています ...
node-github-url-from-git (1.1.1-1) を設定しています ...
node-once (1.1.1-1) を設定しています ...
node-glob (4.0.5-1) を設定しています ...
nodejs-dev (4.2.6~dfsg-1ubuntu4.1) を設定しています ...
node-nopt (3.0.1-1) を設定しています ...
node-npmlog (0.0.4-1) を設定しています ...
node-osenv (0.1.0-1) を設定しています ...
node-tunnel-agent (0.3.1-1) を設定しています ...
node-json-stringify-safe (5.0.0-1) を設定しています ...
node-qs (2.2.4-1) を設定しています ...
node-request (2.26.1-1) を設定しています ...
node-semver (2.1.0-2) を設定しています ...
node-tar (1.0.3-2) を設定しています ...
node-which (1.0.5-2) を設定しています ...
node-gyp (3.0.3-2ubuntu1) を設定しています ...
node-ini (1.1.0-1) を設定しています ...
node-lockfile (0.4.1-1) を設定しています ...
node-mute-stream (0.0.4-1) を設定しています ...
node-normalize-package-data (0.2.2-1) を設定しています ...
node-read (1.0.5-1) を設定しています ...
node-read-package-json (1.2.4-1) を設定しています ...
node-retry (0.6.0-1) を設定しています ...
node-sha (1.2.3-1) を設定しています ...
node-slide (1.1.4-1) を設定しています ...
npm (3.5.2-0ubuntu4) を設定しています ...
libappindicator1をインストール
依存ライブラリをインストールする。
$ sudo apt-get install libappindicator1
[sudo] {username} のパスワード:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
libpango1.0-0 libpangox-1.0-0
これを削除するには 'sudo apt autoremove' を利用してください。
以下の追加パッケージがインストールされます:
libindicator7
以下のパッケージが新たにインストールされます:
libappindicator1 libindicator7
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 4 個。
40.7 kB のアーカイブを取得する必要があります。
この操作後に追加で 184 kB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 libindicator7 amd64 12.10.2+16.04.20151208-0ubuntu1 [21.9 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 libappindicator1 amd64 12.10.1+15.04.20141110-0ubuntu1 [18.8 kB]
40.7 kB を 0秒 で取得しました (202 kB/s)
以前に未選択のパッケージ libindicator7 を選択しています。
(データベースを読み込んでいます ... 現在 180138 個のファイルとディレクトリがインストールされています。)
.../libindicator7_12.10.2+16.04.20151208-0ubuntu1_amd64.deb を展開する準備をしています ...
libindicator7 (12.10.2+16.04.20151208-0ubuntu1) を展開しています...
以前に未選択のパッケージ libappindicator1 を選択しています。
.../libappindicator1_12.10.1+15.04.20141110-0ubuntu1_amd64.deb を展開する準備をしています ...
libappindicator1 (12.10.1+15.04.20141110-0ubuntu1) を展開しています...
libc-bin (2.23-0ubuntu3) のトリガを処理しています ...
libindicator7 (12.10.2+16.04.20151208-0ubuntu1) を設定しています ...
libappindicator1 (12.10.1+15.04.20141110-0ubuntu1) を設定しています ...
libc-bin (2.23-0ubuntu3) のトリガを処理しています ...
electronをインストール<失敗>
npmを使ってelectronをインストールする。
$ npm install electron -g
npm WARN checkPermissions Missing write access to /usr/local/lib
/usr/local/lib
└─┬ electron@1.3.5
├─┬ electron-download@2.2.1
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ ├── home-path@1.0.3
│ ├── minimist@1.2.0
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├─┬ mv@2.1.1
│ │ ├── ncp@2.0.0
│ │ └─┬ rimraf@2.4.5
│ │ └─┬ glob@6.0.4
│ │ ├─┬ inflight@1.0.5
│ │ │ └── wrappy@1.0.2
│ │ ├─┬ minimatch@3.0.3
│ │ │ └─┬ brace-expansion@1.1.6
│ │ │ ├── balanced-match@0.4.2
│ │ │ └── concat-map@0.0.1
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.0
│ ├─┬ nugget@1.6.2
│ │ ├─┬ pretty-bytes@1.0.4
│ │ │ ├── get-stdin@4.0.1
│ │ │ └─┬ meow@3.7.0
│ │ │ ├─┬ camelcase-keys@2.1.0
│ │ │ │ └── camelcase@2.1.1
│ │ │ ├── decamelize@1.2.0
│ │ │ ├─┬ loud-rejection@1.6.0
│ │ │ │ ├─┬ currently-unhandled@0.4.1
│ │ │ │ │ └── array-find-index@1.0.1
│ │ │ │ └── signal-exit@3.0.0
│ │ │ ├── map-obj@1.0.1
│ │ │ ├─┬ normalize-package-data@2.3.5
│ │ │ │ ├── hosted-git-info@2.1.5
│ │ │ │ ├─┬ is-builtin-module@1.0.0
│ │ │ │ │ └── builtin-modules@1.1.1
│ │ │ │ ├── semver@5.3.0
│ │ │ │ └─┬ validate-npm-package-license@3.0.1
│ │ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ │ └── spdx-license-ids@1.2.2
│ │ │ │ └── spdx-expression-parse@1.0.3
│ │ │ ├── object-assign@4.1.0
│ │ │ ├─┬ read-pkg-up@1.0.1
│ │ │ │ ├─┬ find-up@1.1.2
│ │ │ │ │ └── path-exists@2.1.0
│ │ │ │ └─┬ read-pkg@1.1.0
│ │ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ │ ├── graceful-fs@4.1.6
│ │ │ │ │ ├─┬ parse-json@2.2.0
│ │ │ │ │ │ └─┬ error-ex@1.3.0
│ │ │ │ │ │ └── is-arrayish@0.2.1
│ │ │ │ │ ├── pify@2.3.0
│ │ │ │ │ └─┬ strip-bom@2.0.0
│ │ │ │ │ └── is-utf8@0.2.1
│ │ │ │ └── path-type@1.1.0
│ │ │ ├─┬ redent@1.0.0
│ │ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ │ └─┬ is-finite@1.0.1
│ │ │ │ │ └── number-is-nan@1.0.0
│ │ │ │ └── strip-indent@1.0.1
│ │ │ └── trim-newlines@1.0.0
│ │ ├─┬ progress-stream@1.2.0
│ │ │ ├── speedometer@0.1.4
│ │ │ └─┬ through2@0.2.3
│ │ │ ├─┬ readable-stream@1.1.14
│ │ │ │ └── isarray@0.0.1
│ │ │ └─┬ xtend@2.1.2
│ │ │ └── object-keys@0.4.0
│ │ ├─┬ request@2.74.0
│ │ │ ├── aws-sign2@0.6.0
│ │ │ ├── aws4@1.4.1
│ │ │ ├─┬ bl@1.1.2
│ │ │ │ └─┬ readable-stream@2.0.6
│ │ │ │ └── isarray@1.0.0
│ │ │ ├── caseless@0.11.0
│ │ │ ├─┬ combined-stream@1.0.5
│ │ │ │ └── delayed-stream@1.0.0
│ │ │ ├── extend@3.0.0
│ │ │ ├── forever-agent@0.6.1
│ │ │ ├─┬ form-data@1.0.1
│ │ │ │ └─┬ async@2.0.1
│ │ │ │ └── lodash@4.15.0
│ │ │ ├─┬ har-validator@2.0.6
│ │ │ │ ├─┬ chalk@1.1.3
│ │ │ │ │ ├── ansi-styles@2.2.1
│ │ │ │ │ ├── escape-string-regexp@1.0.5
│ │ │ │ │ ├─┬ has-ansi@2.0.0
│ │ │ │ │ │ └── ansi-regex@2.0.0
│ │ │ │ │ ├── strip-ansi@3.0.1
│ │ │ │ │ └── supports-color@2.0.0
│ │ │ │ ├─┬ commander@2.9.0
│ │ │ │ │ └── graceful-readlink@1.0.1
│ │ │ │ ├─┬ is-my-json-valid@2.13.1
│ │ │ │ │ ├── generate-function@2.0.0
│ │ │ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ │ │ └── is-property@1.0.2
│ │ │ │ │ ├── jsonpointer@2.0.0
│ │ │ │ │ └── xtend@4.0.1
│ │ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ │ └── pinkie@2.0.4
│ │ │ ├─┬ hawk@3.1.3
│ │ │ │ ├── boom@2.10.1
│ │ │ │ ├── cryptiles@2.0.5
│ │ │ │ ├── hoek@2.16.3
│ │ │ │ └── sntp@1.0.9
│ │ │ ├─┬ http-signature@1.1.1
│ │ │ │ ├── assert-plus@0.2.0
│ │ │ │ ├─┬ jsprim@1.3.1
│ │ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ │ ├── json-schema@0.2.3
│ │ │ │ │ └── verror@1.3.6
│ │ │ │ └─┬ sshpk@1.10.0
│ │ │ │ ├── asn1@0.2.3
│ │ │ │ ├── assert-plus@1.0.0
│ │ │ │ ├─┬ bcrypt-pbkdf@1.0.0
│ │ │ │ │ └── tweetnacl@0.14.3
│ │ │ │ ├─┬ dashdash@1.14.0
│ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ ├── ecc-jsbn@0.1.1
│ │ │ │ ├─┬ getpass@0.1.6
│ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ ├── jodid25519@1.0.2
│ │ │ │ ├── jsbn@0.1.0
│ │ │ │ └── tweetnacl@0.13.3
│ │ │ ├── is-typedarray@1.0.0
│ │ │ ├── isstream@0.1.2
│ │ │ ├── json-stringify-safe@5.0.1
│ │ │ ├─┬ mime-types@2.1.11
│ │ │ │ └── mime-db@1.23.0
│ │ │ ├── node-uuid@1.4.7
│ │ │ ├── oauth-sign@0.8.2
│ │ │ ├── qs@6.2.1
│ │ │ ├── stringstream@0.0.5
│ │ │ ├── tough-cookie@2.3.1
│ │ │ └── tunnel-agent@0.4.3
│ │ ├── single-line-log@0.4.1
│ │ └── throttleit@0.0.2
│ ├── path-exists@1.0.0
│ └─┬ rc@1.1.6
│ ├── deep-extend@0.4.1
│ ├── ini@1.3.4
│ └── strip-json-comments@1.0.4
└─┬ extract-zip@1.5.0
├─┬ concat-stream@1.5.0
│ ├── inherits@2.0.3
│ ├─┬ readable-stream@2.0.6
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ └── typedarray@0.0.6
├── debug@0.7.4
├─┬ mkdirp@0.5.0
│ └── minimist@0.0.8
└─┬ yauzl@2.4.1
└─┬ fd-slicer@1.0.1
└── pend@1.2.0
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "electron" "-g"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/{username}/npm-debug.log
electronをインストールする<失敗>
パーミッションエラーとのことなので、sudoする
$ sudo npm install electron -g
/usr/local/bin/electron -> /usr/local/lib/node_modules/electron/cli.js
> electron@1.3.5 postinstall /usr/local/lib/node_modules/electron
> node install.js
sh: 1: node: not found
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "electron" "-g"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! electron@1.3.5 postinstall: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the electron@1.3.5 postinstall script 'node install.js'.
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 electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/{username}/npm-debug.log
今度は、node.jsおよびnpmが古いので最新のバージョンでやってくれとのエラーが出る
electronインストールエラーの対処1
対処としてnpmパッケージのnをインストールする
$ sudo npm install -g n
/usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n
/usr/local/lib
└── n@2.1.4
npmパッケージのnを更新する
sudoしないと怒られます
$ sudo n latest
install : node-v6.5.0
mkdir : /usr/local/n/versions/node/6.5.0
fetch : https://nodejs.org/dist/v6.5.0/node-v6.5.0-linux-x64.tar.gz
######################################################################## 100.0%
installed : v6.5.0
electronインストールエラーの対処2
npm自身を更新する
$ sudo npm install -g npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
- lodash._baseclone@4.5.3 node_modules/npm/node_modules/lodash.clonedeep/node_modules/lodash._baseclone
- lodash._baseflatten@4.2.1 node_modules/npm/node_modules/lodash.union/node_modules/lodash._baseflatten
- lodash.rest@4.0.3 node_modules/npm/node_modules/lodash.union/node_modules/lodash.rest
- lodash._root@3.0.1 node_modules/npm/node_modules/lodash.without/node_modules/lodash._basedifference/node_modules/lodash._root
- lodash._basedifference@4.5.0 node_modules/npm/node_modules/lodash.without/node_modules/lodash._basedifference
- lodash.rest@4.0.3 node_modules/npm/node_modules/lodash.without/node_modules/lodash.rest
- balanced-match@0.3.0 node_modules/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match
- concat-map@0.0.1 node_modules/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map
- brace-expansion@1.1.3 node_modules/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion
- minimatch@2.0.10 node_modules/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch
- glob@4.5.3 node_modules/npm/node_modules/node-gyp/node_modules/glob
- lru-cache@2.7.3 node_modules/npm/node_modules/node-gyp/node_modules/minimatch/node_modules/lru-cache
- sigmund@1.0.1 node_modules/npm/node_modules/node-gyp/node_modules/minimatch/node_modules/sigmund
- ansi@0.3.1 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/ansi
- delegates@1.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates
- are-we-there-yet@1.1.2 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/are-we-there-yet
- lodash._baseslice@4.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash._baseslice
- lodash._basetostring@4.12.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash._basetostring
- lodash.tostring@4.1.3 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad/node_modules/lodash.tostring
- lodash.pad@4.4.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.pad
- lodash._baseslice@4.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padend/node_modules/lodash._baseslice
- lodash._basetostring@4.12.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padend/node_modules/lodash._basetostring
- lodash.tostring@4.1.3 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padend/node_modules/lodash.tostring
- lodash.padend@4.5.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padend
- lodash._baseslice@4.0.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padstart/node_modules/lodash._baseslice
- lodash._basetostring@4.12.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padstart/node_modules/lodash._basetostring
- lodash.tostring@4.1.3 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padstart/node_modules/lodash.tostring
- lodash.padstart@4.5.0 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge/node_modules/lodash.padstart
- gauge@1.2.7 node_modules/npm/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge
- npmlog@2.0.4 node_modules/npm/node_modules/node-gyp/node_modules/npmlog
- pseudomap@1.0.2 node_modules/npm/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap
- yallist@2.0.0 node_modules/npm/node_modules/request/node_modules/aws4/node_modules/lru-cache/node_modules/yallist
- lru-cache@4.0.1 node_modules/npm/node_modules/request/node_modules/aws4/node_modules/lru-cache
- assert-plus@1.0.0 node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/sshpk/node_modules/dashdash/node_modules/assert-plus
/usr/local/lib
└─┬ npm@3.10.7
├─┬ fstream-npm@1.1.1
│ └─┬ fstream-ignore@1.0.5
│ └─┬ minimatch@3.0.3
│ └─┬ brace-expansion@1.1.6
│ └── balanced-match@0.4.2
├─┬ glob@7.0.5
│ └─┬ minimatch@3.0.3
│ └─┬ brace-expansion@1.1.6
│ └── balanced-match@0.4.2
├── graceful-fs@4.1.5
├─┬ init-package-json@1.9.4
│ └─┬ glob@6.0.4
│ └─┬ minimatch@3.0.3
│ └─┬ brace-expansion@1.1.6
│ └── balanced-match@0.4.2
├── lodash.clonedeep@4.4.1
├── lodash.union@4.5.0
├── lodash.uniq@4.4.0
├── lodash.without@4.3.0
├─┬ node-gyp@3.4.0
│ ├─┬ minimatch@3.0.3
│ │ └─┬ brace-expansion@1.1.6
│ │ ├── balanced-match@0.4.2
│ │ └── concat-map@0.0.1
│ └─┬ path-array@1.0.1
│ └─┬ array-index@1.0.0
│ └─┬ es6-symbol@3.1.0
│ └── es5-ext@0.10.12
├── npm-user-validate@0.1.5
├─┬ read-package-json@2.0.4
│ └─┬ glob@6.0.4
│ └─┬ minimatch@3.0.3
│ └─┬ brace-expansion@1.1.6
│ └── balanced-match@0.4.2
├─┬ request@2.74.0
│ ├── aws4@1.4.1
│ ├─┬ bl@1.1.2
│ │ └─┬ readable-stream@2.0.6
│ │ └── process-nextick-args@1.0.7
│ ├─┬ http-signature@1.1.1
│ │ ├── jsprim@1.3.0
│ │ └─┬ sshpk@1.9.2
│ │ ├── assert-plus@1.0.0
│ │ ├── dashdash@1.14.0
│ │ ├── getpass@0.1.6
│ │ └── tweetnacl@0.13.3
│ ├─┬ mime-types@2.1.11
│ │ └── mime-db@1.23.0
│ ├── oauth-sign@0.8.2
│ ├── qs@6.2.1
│ ├── tough-cookie@2.3.1
│ └── tunnel-agent@0.4.3
└── rimraf@2.5.4
electronインストールエラーの対処3
念のためnpmキャッシュをクリアする
$ sudo npm cache clear
electronをインストールする<成功>
再度npm経由でelectronをインストールする
$ sudo npm install -g electron
(node:11745) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:11745) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:11745) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:11745) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:11745) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:11745) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:11745) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
/usr/local/bin/electron -> /usr/local/lib/node_modules/electron/cli.js
> electron@1.3.5 postinstall /usr/local/lib/node_modules/electron
> node install.js
Downloading electron-v1.3.5-linux-x64.zip
[============================================>] 100.0% of 42.62 MB (1.54 MB/s)
/usr/local/lib
└─┬ electron@1.3.5
├─┬ electron-download@2.2.1
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ ├── home-path@1.0.3
│ ├── minimist@1.2.0
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├─┬ mv@2.1.1
│ │ ├── ncp@2.0.0
│ │ └─┬ rimraf@2.4.5
│ │ └─┬ glob@6.0.4
│ │ ├─┬ inflight@1.0.5
│ │ │ └── wrappy@1.0.2
│ │ ├─┬ minimatch@3.0.3
│ │ │ └─┬ brace-expansion@1.1.6
│ │ │ ├── balanced-match@0.4.2
│ │ │ └── concat-map@0.0.1
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.0
│ ├─┬ nugget@1.6.2
│ │ ├─┬ pretty-bytes@1.0.4
│ │ │ ├── get-stdin@4.0.1
│ │ │ └─┬ meow@3.7.0
│ │ │ ├─┬ camelcase-keys@2.1.0
│ │ │ │ └── camelcase@2.1.1
│ │ │ ├── decamelize@1.2.0
│ │ │ ├─┬ loud-rejection@1.6.0
│ │ │ │ ├─┬ currently-unhandled@0.4.1
│ │ │ │ │ └── array-find-index@1.0.1
│ │ │ │ └── signal-exit@3.0.0
│ │ │ ├── map-obj@1.0.1
│ │ │ ├─┬ normalize-package-data@2.3.5
│ │ │ │ ├── hosted-git-info@2.1.5
│ │ │ │ ├─┬ is-builtin-module@1.0.0
│ │ │ │ │ └── builtin-modules@1.1.1
│ │ │ │ ├── semver@5.3.0
│ │ │ │ └─┬ validate-npm-package-license@3.0.1
│ │ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ │ └── spdx-license-ids@1.2.2
│ │ │ │ └── spdx-expression-parse@1.0.3
│ │ │ ├── object-assign@4.1.0
│ │ │ ├─┬ read-pkg-up@1.0.1
│ │ │ │ ├─┬ find-up@1.1.2
│ │ │ │ │ └── path-exists@2.1.0
│ │ │ │ └─┬ read-pkg@1.1.0
│ │ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ │ ├── graceful-fs@4.1.6
│ │ │ │ │ ├─┬ parse-json@2.2.0
│ │ │ │ │ │ └─┬ error-ex@1.3.0
│ │ │ │ │ │ └── is-arrayish@0.2.1
│ │ │ │ │ ├── pify@2.3.0
│ │ │ │ │ └─┬ strip-bom@2.0.0
│ │ │ │ │ └── is-utf8@0.2.1
│ │ │ │ └── path-type@1.1.0
│ │ │ ├─┬ redent@1.0.0
│ │ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ │ └─┬ is-finite@1.0.1
│ │ │ │ │ └── number-is-nan@1.0.0
│ │ │ │ └── strip-indent@1.0.1
│ │ │ └── trim-newlines@1.0.0
│ │ ├─┬ progress-stream@1.2.0
│ │ │ ├── speedometer@0.1.4
│ │ │ └─┬ through2@0.2.3
│ │ │ ├─┬ readable-stream@1.1.14
│ │ │ │ └── isarray@0.0.1
│ │ │ └─┬ xtend@2.1.2
│ │ │ └── object-keys@0.4.0
│ │ ├─┬ request@2.74.0
│ │ │ ├── aws-sign2@0.6.0
│ │ │ ├── aws4@1.4.1
│ │ │ ├─┬ bl@1.1.2
│ │ │ │ └─┬ readable-stream@2.0.6
│ │ │ │ └── isarray@1.0.0
│ │ │ ├── caseless@0.11.0
│ │ │ ├─┬ combined-stream@1.0.5
│ │ │ │ └── delayed-stream@1.0.0
│ │ │ ├── extend@3.0.0
│ │ │ ├── forever-agent@0.6.1
│ │ │ ├─┬ form-data@1.0.1
│ │ │ │ └─┬ async@2.0.1
│ │ │ │ └── lodash@4.15.0
│ │ │ ├─┬ har-validator@2.0.6
│ │ │ │ ├─┬ chalk@1.1.3
│ │ │ │ │ ├── ansi-styles@2.2.1
│ │ │ │ │ ├── escape-string-regexp@1.0.5
│ │ │ │ │ ├─┬ has-ansi@2.0.0
│ │ │ │ │ │ └── ansi-regex@2.0.0
│ │ │ │ │ ├── strip-ansi@3.0.1
│ │ │ │ │ └── supports-color@2.0.0
│ │ │ │ ├─┬ commander@2.9.0
│ │ │ │ │ └── graceful-readlink@1.0.1
│ │ │ │ ├─┬ is-my-json-valid@2.13.1
│ │ │ │ │ ├── generate-function@2.0.0
│ │ │ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ │ │ └── is-property@1.0.2
│ │ │ │ │ ├── jsonpointer@2.0.0
│ │ │ │ │ └── xtend@4.0.1
│ │ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ │ └── pinkie@2.0.4
│ │ │ ├─┬ hawk@3.1.3
│ │ │ │ ├── boom@2.10.1
│ │ │ │ ├── cryptiles@2.0.5
│ │ │ │ ├── hoek@2.16.3
│ │ │ │ └── sntp@1.0.9
│ │ │ ├─┬ http-signature@1.1.1
│ │ │ │ ├── assert-plus@0.2.0
│ │ │ │ ├─┬ jsprim@1.3.1
│ │ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ │ ├── json-schema@0.2.3
│ │ │ │ │ └── verror@1.3.6
│ │ │ │ └─┬ sshpk@1.10.0
│ │ │ │ ├── asn1@0.2.3
│ │ │ │ ├── assert-plus@1.0.0
│ │ │ │ ├─┬ bcrypt-pbkdf@1.0.0
│ │ │ │ │ └── tweetnacl@0.14.3
│ │ │ │ ├─┬ dashdash@1.14.0
│ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ ├── ecc-jsbn@0.1.1
│ │ │ │ ├─┬ getpass@0.1.6
│ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ ├── jodid25519@1.0.2
│ │ │ │ ├── jsbn@0.1.0
│ │ │ │ └── tweetnacl@0.13.3
│ │ │ ├── is-typedarray@1.0.0
│ │ │ ├── isstream@0.1.2
│ │ │ ├── json-stringify-safe@5.0.1
│ │ │ ├─┬ mime-types@2.1.11
│ │ │ │ └── mime-db@1.23.0
│ │ │ ├── node-uuid@1.4.7
│ │ │ ├── oauth-sign@0.8.2
│ │ │ ├── qs@6.2.1
│ │ │ ├── stringstream@0.0.5
│ │ │ ├── tough-cookie@2.3.1
│ │ │ └── tunnel-agent@0.4.3
│ │ ├── single-line-log@0.4.1
│ │ └── throttleit@0.0.2
│ ├── path-exists@1.0.0
│ └─┬ rc@1.1.6
│ ├── deep-extend@0.4.1
│ ├── ini@1.3.4
│ └── strip-json-comments@1.0.4
└─┬ extract-zip@1.5.0
├─┬ concat-stream@1.5.0
│ ├── inherits@2.0.3
│ ├─┬ readable-stream@2.0.6
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ └── typedarray@0.0.6
├── debug@0.7.4
├─┬ mkdirp@0.5.0
│ └── minimist@0.0.8
└─┬ yauzl@2.4.1
└─┬ fd-slicer@1.0.1
└── pend@1.2.0
gitをインストールする
githubのquick-startを試すために、gitもインストールする
$ sudo apt-get install git
[sudo] {username} のパスワード:
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下の追加パッケージがインストールされます:
git-man liberror-perl
提案パッケージ:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch
git-cvs git-mediawiki git-svn
以下のパッケージが新たにインストールされます:
git git-man liberror-perl
アップグレード: 0 個、新規インストール: 3 個、削除: 0 個、保留: 8 個。
3,760 kB のアーカイブを取得する必要があります。
この操作後に追加で 25.6 MB のディスク容量が消費されます。
続行しますか? [Y/n] y
取得:1 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 git-man all 1:2.7.4-0ubuntu1 [735 kB]
取得:3 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 git amd64 1:2.7.4-0ubuntu1 [3,006 kB]
3,760 kB を 0秒 で取得しました (5,157 kB/s)
以前に未選択のパッケージ liberror-perl を選択しています。
(データベースを読み込んでいます ... 現在 215812 個のファイルとディレクトリがインストールされています。)
.../liberror-perl_0.17-1.2_all.deb を展開する準備をしています ...
liberror-perl (0.17-1.2) を展開しています...
以前に未選択のパッケージ git-man を選択しています。
.../git-man_1%3a2.7.4-0ubuntu1_all.deb を展開する準備をしています ...
git-man (1:2.7.4-0ubuntu1) を展開しています...
以前に未選択のパッケージ git を選択しています。
.../git_1%3a2.7.4-0ubuntu1_amd64.deb を展開する準備をしています ...
git (1:2.7.4-0ubuntu1) を展開しています...
man-db (2.7.5-1) のトリガを処理しています ...
liberror-perl (0.17-1.2) を設定しています ...
git-man (1:2.7.4-0ubuntu1) を設定しています ...
git (1:2.7.4-0ubuntu1) を設定しています ...
workフォルダ作成
workフォルダを作成して、フォルダ内に移動する
$mkdir work
$ cd work/
electron-quick-startをcloneする
electron-quick-startプロジェクトをgithubからcloneする
/work$ git clone https://github.com/electron/electron-quick-start
Cloning into 'electron-quick-start'...
remote: Counting objects: 187, done.
remote: Total 187 (delta 0), reused 0 (delta 0), pack-reused 187
Receiving objects: 100% (187/187), 30.46 KiB | 0 bytes/s, done.
Resolving deltas: 100% (86/86), done.
Checking connectivity... done.
階層移動
ディレクトリを移動する
/work$ cd electron-quick-start/
electron-quick-startを実行
electron-quick-startを実行する
/work/electron-quick-start$ sudo npm install && npm start
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
(node:7857) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit
> electron@1.3.5 postinstall /home/{username}/work/electron-quick-start/node_modules/electron
> node install.js
Downloading electron-v1.3.5-linux-x64.zip
[============================================>] 100.0% of 42.62 MB (751.07 kB/s)
electron-quick-start@1.0.0 /home/{username}/work/electron-quick-start
└─┬ electron@1.3.5
├─┬ electron-download@2.2.1
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ ├── home-path@1.0.3
│ ├── minimist@1.2.0
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├─┬ mv@2.1.1
│ │ ├── ncp@2.0.0
│ │ └─┬ rimraf@2.4.5
│ │ └─┬ glob@6.0.4
│ │ ├─┬ inflight@1.0.5
│ │ │ └── wrappy@1.0.2
│ │ ├─┬ minimatch@3.0.3
│ │ │ └─┬ brace-expansion@1.1.6
│ │ │ ├── balanced-match@0.4.2
│ │ │ └── concat-map@0.0.1
│ │ ├── once@1.4.0
│ │ └── path-is-absolute@1.0.0
│ ├─┬ nugget@1.6.2
│ │ ├─┬ pretty-bytes@1.0.4
│ │ │ ├── get-stdin@4.0.1
│ │ │ └─┬ meow@3.7.0
│ │ │ ├─┬ camelcase-keys@2.1.0
│ │ │ │ └── camelcase@2.1.1
│ │ │ ├── decamelize@1.2.0
│ │ │ ├─┬ loud-rejection@1.6.0
│ │ │ │ ├─┬ currently-unhandled@0.4.1
│ │ │ │ │ └── array-find-index@1.0.1
│ │ │ │ └── signal-exit@3.0.1
│ │ │ ├── map-obj@1.0.1
│ │ │ ├─┬ normalize-package-data@2.3.5
│ │ │ │ ├── hosted-git-info@2.1.5
│ │ │ │ ├─┬ is-builtin-module@1.0.0
│ │ │ │ │ └── builtin-modules@1.1.1
│ │ │ │ ├── semver@5.3.0
│ │ │ │ └─┬ validate-npm-package-license@3.0.1
│ │ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ │ └── spdx-license-ids@1.2.2
│ │ │ │ └── spdx-expression-parse@1.0.3
│ │ │ ├── object-assign@4.1.0
│ │ │ ├─┬ read-pkg-up@1.0.1
│ │ │ │ ├─┬ find-up@1.1.2
│ │ │ │ │ └── path-exists@2.1.0
│ │ │ │ └─┬ read-pkg@1.1.0
│ │ │ │ ├─┬ load-json-file@1.1.0
│ │ │ │ │ ├── graceful-fs@4.1.6
│ │ │ │ │ ├─┬ parse-json@2.2.0
│ │ │ │ │ │ └─┬ error-ex@1.3.0
│ │ │ │ │ │ └── is-arrayish@0.2.1
│ │ │ │ │ ├── pify@2.3.0
│ │ │ │ │ └─┬ strip-bom@2.0.0
│ │ │ │ │ └── is-utf8@0.2.1
│ │ │ │ └── path-type@1.1.0
│ │ │ ├─┬ redent@1.0.0
│ │ │ │ ├─┬ indent-string@2.1.0
│ │ │ │ │ └─┬ repeating@2.0.1
│ │ │ │ │ └─┬ is-finite@1.0.1
│ │ │ │ │ └── number-is-nan@1.0.0
│ │ │ │ └── strip-indent@1.0.1
│ │ │ └── trim-newlines@1.0.0
│ │ ├─┬ progress-stream@1.2.0
│ │ │ ├── speedometer@0.1.4
│ │ │ └─┬ through2@0.2.3
│ │ │ ├─┬ readable-stream@1.1.14
│ │ │ │ └── isarray@0.0.1
│ │ │ └─┬ xtend@2.1.2
│ │ │ └── object-keys@0.4.0
│ │ ├─┬ request@2.74.0
│ │ │ ├── aws-sign2@0.6.0
│ │ │ ├── aws4@1.4.1
│ │ │ ├─┬ bl@1.1.2
│ │ │ │ └─┬ readable-stream@2.0.6
│ │ │ │ └── isarray@1.0.0
│ │ │ ├── caseless@0.11.0
│ │ │ ├─┬ combined-stream@1.0.5
│ │ │ │ └── delayed-stream@1.0.0
│ │ │ ├── extend@3.0.0
│ │ │ ├── forever-agent@0.6.1
│ │ │ ├─┬ form-data@1.0.1
│ │ │ │ └─┬ async@2.0.1
│ │ │ │ └── lodash@4.15.0
│ │ │ ├─┬ har-validator@2.0.6
│ │ │ │ ├─┬ chalk@1.1.3
│ │ │ │ │ ├── ansi-styles@2.2.1
│ │ │ │ │ ├── escape-string-regexp@1.0.5
│ │ │ │ │ ├─┬ has-ansi@2.0.0
│ │ │ │ │ │ └── ansi-regex@2.0.0
│ │ │ │ │ ├── strip-ansi@3.0.1
│ │ │ │ │ └── supports-color@2.0.0
│ │ │ │ ├─┬ commander@2.9.0
│ │ │ │ │ └── graceful-readlink@1.0.1
│ │ │ │ ├─┬ is-my-json-valid@2.13.1
│ │ │ │ │ ├── generate-function@2.0.0
│ │ │ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ │ │ └── is-property@1.0.2
│ │ │ │ │ ├── jsonpointer@2.0.0
│ │ │ │ │ └── xtend@4.0.1
│ │ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ │ └── pinkie@2.0.4
│ │ │ ├─┬ hawk@3.1.3
│ │ │ │ ├── boom@2.10.1
│ │ │ │ ├── cryptiles@2.0.5
│ │ │ │ ├── hoek@2.16.3
│ │ │ │ └── sntp@1.0.9
│ │ │ ├─┬ http-signature@1.1.1
│ │ │ │ ├── assert-plus@0.2.0
│ │ │ │ ├─┬ jsprim@1.3.1
│ │ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ │ ├── json-schema@0.2.3
│ │ │ │ │ └── verror@1.3.6
│ │ │ │ └─┬ sshpk@1.10.0
│ │ │ │ ├── asn1@0.2.3
│ │ │ │ ├── assert-plus@1.0.0
│ │ │ │ ├─┬ bcrypt-pbkdf@1.0.0
│ │ │ │ │ └── tweetnacl@0.14.3
│ │ │ │ ├─┬ dashdash@1.14.0
│ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ ├── ecc-jsbn@0.1.1
│ │ │ │ ├─┬ getpass@0.1.6
│ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ ├── jodid25519@1.0.2
│ │ │ │ ├── jsbn@0.1.0
│ │ │ │ └── tweetnacl@0.13.3
│ │ │ ├── is-typedarray@1.0.0
│ │ │ ├── isstream@0.1.2
│ │ │ ├── json-stringify-safe@5.0.1
│ │ │ ├─┬ mime-types@2.1.11
│ │ │ │ └── mime-db@1.23.0
│ │ │ ├── node-uuid@1.4.7
│ │ │ ├── oauth-sign@0.8.2
│ │ │ ├── qs@6.2.1
│ │ │ ├── stringstream@0.0.5
│ │ │ ├── tough-cookie@2.3.1
│ │ │ └── tunnel-agent@0.4.3
│ │ ├── single-line-log@0.4.1
│ │ └── throttleit@0.0.2
│ ├── path-exists@1.0.0
│ └─┬ rc@1.1.6
│ ├── deep-extend@0.4.1
│ ├── ini@1.3.4
│ └── strip-json-comments@1.0.4
└─┬ extract-zip@1.5.0
├─┬ concat-stream@1.5.0
│ ├── inherits@2.0.3
│ ├─┬ readable-stream@2.0.6
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ └── typedarray@0.0.6
├── debug@0.7.4
├─┬ mkdirp@0.5.0
│ └── minimist@0.0.8
└─┬ yauzl@2.4.1
└─┬ fd-slicer@1.0.1
└── pend@1.2.0
> electron-quick-start@1.0.0 start /home/{username}/work/electron-quick-start
> electron .
参考
npmでelectronのインストールに失敗したときに参考にさせて頂きました。
http://qiita.com/masato_t/items/0a0f5f31b8225c3d9e52
Electron Docs
http://electron.atom.io/docs/