エラーの概要
Node-redでカスタムノードを作っていると、下記のようなエラーで起動しないことがある。
要は、custom-nodeが起動時に読み込むFlows fileの中にあるけど、見つけられないっtことらしい。
7 Apr 13:08:25 - [info] Node-RED version: v0.13.4-git
7 Apr 13:08:25 - [info] Node.js version: v5.7.1
7 Apr 13:08:25 - [info] Darwin 15.4.0 x64 LE
7 Apr 13:08:25 - [info] Loading palette nodes
7 Apr 13:08:28 - [info] Settings file : /Users/****/.node-red/settings.js
7 Apr 13:08:28 - [info] User directory : /Users/****/.node-red
7 Apr 13:08:28 - [info] Flows file : /Users/****/.node-red/****.local.json
7 Apr 13:08:28 - [info] Creating new flow file
7 Apr 13:08:28 - [info] Starting flows
7 Apr 13:08:28 - [info] Started flows
7 Apr 13:08:28 - [info] Server now running at http://127.0.0.1:1880/
7 Apr 13:09:01 - [info] Stopping flows
7 Apr 13:09:01 - [info] Stopped flows
7 Apr 13:09:01 - [info] Waiting for missing types to be registered:
7 Apr 13:09:01 - [info] - custom-node
対策
起動時に読み込んでいるFlows fileを一旦削除すればよい。
$rm /Users/****/.node-red/****.local.json