-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I somehow (cannot now duplicate) had this working with Node 12.14.0, Win7 Pro SP1 x64 for an entire day, and created C# flows interacting with Excel, Word, Winforms and (via sharpAHK) AutoHotkey. Very encouraging! But as of today I'm getting this message:
"Error: The edge module has not been pre-compiled for node.js version v12.14.0. You must build a custom version of edge.node. Please refer to https://github.com/tjanczuk/edge for building instructions."
This message previously appeared when I installed red-edge directly from the cloned repository, but disappeared when I installed node-red-contrib-edge (via the Management Palette), which if I'm not mistaken references this repository as well. As mentioned, it worked superbly. On a Win10 machine I now have identical disappointing results. Any guidance greatly appreciated.
EDIT: Problem solved at least provisionally on Win7. Steps to cure:
- cd [userprofile].node-red\node_modules
- npm install --upgrade --unsafe-perm edge-js
I ended up with symbolic link trouble, but have installed edge-js globally and removed the edge-js folder link/shortcut from .node-red\node_modules. For now everything works, but this seems wrong.
The above does not work for me, however, on Win10. There must be a workaround though, will post as soon as I find it.
EDIT: Provisionally solved on Win10
- npm install --global --upgrade --unsafe-perm edge.js
- cd .node-red
- npm install --upgrade --unsafe-perm node-red-contrib-edge
- cd .node-red\node_modules\node-red-contrib-edge\node_modules (here lies the problem, I think - local edge-js overrides both a global installation and, if present, edge-js in .node-red\node_modules)
- delete edge-js folder
Again, this seems wrong, but works.