Basically, don't run node-red as root. It is dangerous (as node-red
could overwrite anything on your system) and there is generally no
need. If you believe you need to run it as root then ask here and
usually there is an alternative.
Colin
On 10 January 2018 at 10:19, timothylegg <
timoth...@gmail.com> wrote:
> I decided to use a search engine to find out more about fixfa.js. What I
> saw was this November 8, 2017 posting:
>
>
https://github.com/node-red/node-red-dashboard/issues/304
>
> I launched node-red as root today and it failed.
>
> I launched node-red as a non-root user and it restored to functionality as I
> remember it having in December.
>
> Apparently, there are issues running node-red as root. What are other's
> thoughts?
>
> Thanks,
>
> Timothy D Legg
>
>
> On Wednesday, January 10, 2018 at 11:08:14 AM UTC+1, timothylegg wrote:
>>
>> Hello,
>>
>> I traveled on vacation for two weeks. I returned, and found one of my
>> nodes labeled as 'unknown: ui_chart'. That was when I found that
>> node-red-dashboard wasn't installed as a module anymore.
>>
>> I cannot install node-red-dashboard either. I found this in the debug
>> tab.
>>
>> Error: Command failed: npm install --save --save-prefix="~" --production
>> node-red-...@2.7.0↵module.js:327↵ throw err;↵ ^↵↵Error: Cannot find
>> module '/root/.node-red/node_modules/node-red-dashboard/fixfa.js'↵ at
>> Function.Module._resolveFilename (module.js:325:15)↵ at
>> Function.Module._load (module.js:276:25)↵ at Function.Module.runMain
>> (module.js:441:10)↵ at startup (node.js:139:18)↵ at node.js:990:3↵npm WARN
>> node-red...@0.0.1 No repository field.↵npm WARN node-red...@0.0.1
>> No license field.↵npm ERR! Linux 4.10.0-42-generic↵npm ERR! argv
>> "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "--save-prefix=\"~\""
>> "--production" "node-red-...@2.7.0"↵npm ERR! node v4.7.2↵npm ERR! npm
>> v3.5.2↵npm ERR! code ELIFECYCLE↵↵npm ERR! node-red-...@2.7.0
>> postinstall: `node fixfa.js`↵npm ERR! Exit status 1↵npm ERR! ↵npm ERR!
>> Failed at the node-red-...@2.7.0 postinstall script 'node
>> --save-prefix="~" --production node-red-...@2.7.0
>> module.js:327
>> throw err;
>> ^
>>
>> Error: Cannot find module
>> '/root/.node-red/node_modules/node-red-dashboard/fixfa.js'
>> at Function.Module._resolveFilename (module.js:325:15)
>> at Function.Module._load (module.js:276:25)
>> at Function.Module.runMain (module.js:441:10)
>> at startup (node.js:139:18)
>> at node.js:990:3
>> npm WARN node-red...@0.0.1 No repository field.
>> npm WARN node-red...@0.0.1 No license field.
>> npm ERR! Linux 4.10.0-42-generic
>> npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save"
>> "--save-prefix=\"~\"" "--production" "node-red-...@2.7.0"
>> npm ERR! node v4.7.2
>> npm ERR! npm v3.5.2
>> npm ERR! code ELIFECYCLE
>>
>> npm ERR! node-red-...@2.7.0 postinstall: `node fixfa.js`
>> npm ERR! Exit status 1
>> npm ERR!
>> npm ERR! Failed at the node-red-...@2.7.0 postinstall script 'node
> --
>
http://nodered.org
>
> Join us on Slack to continue the conversation:
http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
node-red+u...@googlegroups.com.
> To post to this group, send email to
node...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/node-red.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/node-red/18cb7224-9fa4-4fe4-9689-9cb90aeb9119%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.