Closed Batigolle closed 6 years ago
i cant install it in Node-RED(v0.18.4) instance on IBM Cloud now. 2018-03-02T16:54:57.13-0500 [APP/PROC/WEB/0] OUT 2 Mar 21:54:57 - [info] Installing module: node-red-contrib-ttn, version: 2.0.4 2018-03-02T16:55:15.49-0500 [APP/PROC/WEB/0] OUT 2 Mar 21:55:15 - [warn] Installation of module node-red-contrib-ttn failed: 2018-03-02T16:55:15.49-0500 [APP/PROC/WEB/0] OUT 2 Mar 21:55:15 - [warn] ------------------------------------------ 2018-03-02T16:55:15.49-0500 [APP/PROC/WEB/0] OUT 2 Mar 21:55:15 - [warn] Killed 2018-03-02T16:55:15.49-0500 [APP/PROC/WEB/0] OUT 2 Mar 21:55:15 - [warn] ------------------------------------------ 2018-03-02T16:55:15.49-0500 [APP/PROC/WEB/0] OUT 2 Mar 21:55:15 - [audit] {"event":"nodes.install","module":"node-red-contrib-ttn","version":"2.0.4","error":"unexpected_error","message":"Error: Install failed","level":98,
What could be the problem?
@Batigolle what is your npm and node version?
I cannot reproduce on High Sierra, npm 5.4.0, node 9.5.0, node-red 0.18.4 and node-red-contrib-ttn 2.0.4.
@johncaipa @Batigolle does a previous version work, i.e. 2.0.1
? That should be npm install node-red-contrib-ttn@2.0.1
@johanstokking in my case it seems to be a problem in the new version of node-RED(v0.18.4), I had to do downgrate to both node-RER (v0.17.5) and node-red-contrib-ttn (v2.0.1) this since it does not allow to install it from the graphical interface anymore, I have to add it to the package.json
That may have something to do with the requirement to run a script to install the grpc dependency.
@johanstokking my current version are : npm 5.6.0 node.js 8.9.4 node-red 0.18.4
I have tried to install the contrib-ttn 2.0.1 version, as you suggested this is the output of the command
After starting node-red, I see the ttn nodes in the left bar and in Manage palette it is suggested to update the module to 2.0.4
@Batigolle You should be working from the .node-red
directory. Please see general instructions for installing Node-RED nodes.
@johanstokking you're right, I repeated the installation
@Batigolle this looks good. How about 2.0.4
?
@johanstokking
I repeated the installation 2.0.4, this it's output
after start node-red , on manage palette , it still requires updating to the version 2.0.4
I cannot reproduce still. Can you verify that you don't have node-red-contrib-ttn@2.0.1
installed globally?
@johanstokking both from Manage palette and from User Setting, the result is always the same
@johanstokking if I try to select, from Manage Palette "Update to 2.0.4", obtaining the following error
That indeed suggests that the module is installed globally, not locally.
Hi @johanstokking , I tried to uninstall the node with your instructions 1), but nothing happened.
I investigated the global and local settings of the installations and I found a lot of confusion in the folders on the computer, I found 4 folders ".../node_modules " !
I think it's due to a wrong update of nod-red to the vers. 0.18.4
I deleted only one node_modules directory of the four and the subsequent installation of node-red-contrib-ttn 2.0.4 ,was successfully terminated
Currently the situation of the node_modules folders is as follows: 1) C:\Users\lucky\AppData\Roaming\npm\node_modules 2) C:\Users\lucky\AppData\Roaming\npm\node_modules\node-red\node_modules 3) C:\Users\lucky.node-red\node_modules
the 1) should be that of the installations of the global nodes the 3) correct of the installationa of the local nodes the 2) does not convince me, it seems strange that there is a folder node_modules nested in another folder node_modules
However, for now, node-red seems to work
To clean up the environment, I could try to uninstall node-red and reinstall it, but I can not find instructions on how to uninstall it
Thanks a lot for your support
@Batigolle thanks for the details. Indeed, Node.js and Node-RED installations are very easy to become a complete mess, certainly under Windows. This doesn't seem related to this particular repository so I'm closing this issue.
Initial situation, working ok: Windows10 + node-red 0.18.2 + node-red-contrib-ttn
After updating to version 0.18.4, manage palette, reports that contib-ttn needs to be reinstalled.
Tried to do the installation from manage palette, without success. Tried to reinstall the command line node (npm install node-red-contrib-ttn), but I get many error reports, reinstallation is not successful.
Attached installation errors log 2018-03-01T21_39_35_174Z-debug.log
node-red environment versions 1 Mar 22:42:46 - [info] Node-RED version: v0.18.4 1 Mar 22:42:46 - [info] Node.js version: v8.9.4 1 Mar 22:42:46 - [info] Windows_NT 10.0.16299 x64 LE 1 Mar 22:42:47 - [info] Loading palette nodes 1 Mar 22:42:50 - [info] Dashboard version 2.8.2 started at /ui .........
Note: In the raspbian environment, raspberry PI3, updated to version 0.18.4 with node node-red-contrib-ttn, works correctly
Thanks