Error when installing node-red-contrib-iiot-ocpua

Hi, The installation of the node red opc ua module has failed on several tries. The controller is an AXC F 2152 with firmware 2019.3. First I installed node.js via the plcnext store. Then I installed the package manager as a root user and installed cgg, make and python 27. For the opc-ua module I used the following command: npm install -g node-red-contrib-iiot-opcua At the very end of the installation this resulted in the following error: npm WARN deprecated delayed@1.0.1: no longer maintained > deasync@0.1.15 install /opt/plcnext/appshome/data/60002172000051/lib/node_modules/node-red-contrib-iiot-opcua/node_modules/deasync

node ./build.js gyp ERR! configure error
gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack File “”, line 1
gyp ERR! stack import sys; print “%s.%s.%s” % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at maybeClose (internal/child_process.js:970:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11)
gyp ERR! stack at Socket.emit (events.js:189:13)
gyp ERR! stack at Pipe._handle.close (net.js:597:12)
gyp ERR! System Linux 4.14.63-rt40-pxc
gyp ERR! command “/opt/plcnext/apps/60002172000051/opt/node-v10.15.3-linux-armv7l/bin/node” “/opt/plcnext/apps/60002172000051/opt/node-v10.15.3-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /opt/plcnext/appshome/data/60002172000051/lib/node_modules/node-red-contrib-iiot-opcua/node_modules/deasync
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deasync@0.1.15 install: node ./build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the deasync@0.1.15 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:
npm ERR! /home/root/.npm/_logs/2019-05-09T13_56_40_781Z-debug.log
root@axcf2152:/etc/profile.d# ^C
root@axcf2152:/etc/profile.d# gyp ERR! stack ^
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! deasync@0.1.15 install: node ./build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the deasync@0.1.15 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in:
npm ERR! /home/root/.npm/_logs/2019-05-09T13_56_40_781Z-debug.log The OPC nodes are not available when I open node-red on my controller. Kind regards, Jannes

I am not sure what the problem is but, from the messages, npm appears to be using the factory-installed python version in /usr/bin, rather than the version you installed in /opt/bin. You might try changing that. Also, you might try the solution that worked in this case: https://www.plcnext-community.net/index.php?option=com_easydiscuss&view;=post&id;=1265&Itemid;=224⟨=en#reply-1270 If you still have no luck, you could raise an issue with the author of that node-red package. - Martin.

I had used --unsafe-perm in another try before that one. That was not the solution for me. Using an older version of the package now seems to be the solution. I managed to install it by using this command: npm install -g node-red-contrib-iiot-opcua@2.7.1 --unsafe-perm