electron-builderで「Error: Cannot find module 」が出る場合につい

0,目次

  1. はじめに
  2. 対処
  3. 参考文献

1,はじめに

electron-builderを用いて、Webアプリのビルドを行おうとしたところ、エラーが発生しました。

エラーメッセージとして以下が表示されました。

R:\test\electron-quick-start>node electron-builder
internal/modules/cjs/loader.js:797
    throw err;
    ^

Error: Cannot find module 'R:\test\electron-quick-start\electron-builder'
[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:687:27)[39m
[90m    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)[39m
[90m    at internal/main/run_main_module.js:17:11[39m {
  code: [32m'MODULE_NOT_FOUND'[39m,
  requireStack: []
}

R:\test\electron-quick-start>

この問題への対処を行います。

続きを読む »

君はnpmで「WARN tar ENOSPC: no space left on device, write」を出したことがあるか?

0,目次

  1. はじめに
  2. 証跡
  3. おわりに

1,はじめに

npmでモジュールを追加しようとしてエラー等に遭遇することはたまにあります。

さて、皆さん「WARN tar ENOSPC: no space left on device, write」という警告メッセージをご存知でしょうか?

これは、npmでモジュールを書き込むディスクに空き容量がないと発生します。

すなわち、ディスク空き容量が不足した状態でnpmで追加モジュールのインストールを行なったところ、「WARN tar ENOSPC: no space left on device, write」という警告が表示されます。

続きを読む »

How to persist Iptables Firewall configuration

0, Index

  1. Introduction
  2. How to install iptables configuration persistence utility
    1. Install netfilter-persistent
    2. Install iptables-persistent
    3. Write iptables rules
  3. References

1, Introduction

Do you konw “iptables” ?

This is a front-end tool for configure kernel packet filters.

So, iptables is not firewall, but setting tool.

When used normally, iptables’s handmade-setting will be reset after a Linux reboot.

If you read this article, you will know how to prevent handmade setting reset.

In other words, I wrote how to persist iptables setting.

続きを読む »

node.js自体を更新する(Windows環境)

0,目次

  1. はじめに
  2. 管理ツール「n」の導入(Windows版はないため失敗)
  3. node.jsのアップデート
    1. 最新のnode.jsを取得
    2. 動作確認
  4. まとめ

1,はじめに

Windows環境に導入したnode.jsをバージョンアップしたいと思ったことはありませんでしょうか?

方法として、既存のnode.jsのアンインストールを行い、最新のパッケージをインストールするという方法が考えられます。

しかし、面倒くさいです。

そこで、「n」というバージョン管理ツールを使用して、node.jsの更新を試みます。

まぁ、記事を読んでいただくとわかるのですが、

結論から言うと、「n」での更新はできませんでした。

Windowsに「n」は現状(2019/11/04)対応しておりません。

試した環境は以下の通りです。

  • Windows 10
  • npm (v6.12.1)
  • node.js (v6.10.3)
続きを読む »

Debian 9でL2TP/IPSecのVPNサーバーを構築する

1,初めに

本稿はDebian 9でL2TP/IPSecを用いたVPNサーバーを構築した際の実施記録である。

VPNサーバーを構築する際に、使用できるソフトウェアはいくつかある。

本件構築では、下記のソフトウェアを使用し、設定を行なった。

  • strongswan
  • xl2tpd
続きを読む »