dceejay/electron-node-red

A JavaScript error occurs at launch

Closed this issue · 6 comments

On Windows 10 2004 and Node v12.16.3,

git clone https://github.com/dceejay/electron-node-red.git
cd electron-node-red
sudo npm i -g yarn
yarn
yarn dist
dist\Node-RED Electron 1.1.0.msi

The following error message is displayed:

Capture 2020-07-02 18-09-25

However, ignoring the error doesn't seem to have an impact on Electron-Node-RED.

Same issue on macOS.

Capture 2020-07-27 à 22 51 56

qyuie commented

This error occurs in node-red@1.1.0-beta.1 and later, but not in 1.0.6 and earlier.

I tried adding if(files) to line 29 of \node_modules\@node-red\registry\lib\library.js,
and this error didn't occur.

rather than an if(files)... could you try adding an if (err)... - and printing out the err received ? (and pasting here) - thanks

qyuie commented

Hi @dceejay, I received the follwing err.
Error: ENOENT, node_modules\@node-red\nodes\examples not found in C:\Users\***\Node-RED\electron-node-red\dist\win-unpacked\resources\app.asar

thanks

Hmm fix not quite working - reopened while fixing