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:
However, ignoring the error doesn't seem to have an impact on Electron-Node-RED.
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
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