Quantcast
Channel: MultiTech Developer Resources » All Posts
Viewing all articles
Browse latest Browse all 7111

Reply To: Adding nodes to node-red

$
0
0

I’m going to jump into this conversation as I’m having the same issue and not sure how to resolve it.

I am trying to add a node, specifically a mysql node). I attempted the following:

1) Copy and past the 68-mysql.html and 68-mysql.json files from the above link to /opt/node-red/nodes/core/storage. Restarted the Conduit, but the mySQL node was not added. I looked at the .config file, and it was updated to include the 68-mysql files. The entry looks like:
`”mysql”: {
“name”: “mysql”,
“types”: [
"MySQLdatabase",
"mysql"
],
“enabled”: true,
“module”: “node-red”,
“file”: “/opt/node-red/nodes/core/storage/68-mysql.js”
}`

2) I tried to add this node via npm (I SSH’d into the Conduit using PuTTY). I did the following
cd /opt/node-red/nodes
npm install node-red-node-mysql
From that, I got the following error`npm WARN package.json mts-gpio@ No description

npm WARN package.json mts-gpio@ No repository field.
npm WARN package.json mts-gpio@ No README data
npm WARN package.json mts-mcard@ No description
npm WARN package.json mts-mcard@ No repository field.
npm WARN package.json mts-mcard@ No README data
npm WARN package.json mts-serial@ No description
npm WARN package.json mts-serial@ No repository field.
npm WARN package.json mts-serial@ No README data
npm ERR! network getaddrinfo ENOTFOUND
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! System Linux 3.12.27
npm ERR! command "node" "/usr/bin/npm" "install" "node-red-node-mysql"
npm ERR! cwd /opt/node-red/nodes
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /opt/node-red/nodes/npm-debug.log
npm ERR! not ok code 0

And alas, the node hasn’t been added to node-red on the Conduit :( . Anyone know what is the cause of this?


Viewing all articles
Browse latest Browse all 7111

Trending Articles