-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install with Node-Red #1
Comments
For linux-x64, you need to install GCC/make on your computer in order to compile C/C++ code. npm and node-gyp don't perform GCC/make installation, so please install them manually. |
I've both GCC/make installed on my Mac and I still cannot install this node. |
As long as I looked at your error message, you were trying to install the node on Linux rather than mac. If you're installing it on mac, it should work. |
Ok, the initial error message I posted was on my Linux production machine. However, I did try installing node-red on my local machine (Mac) to test it out and still not able to install using npm. Is there a different way I need to install this? No, I'm not using any docker or other VMs. |
Here are my GCC/ make versions
|
Weird. Could you tell me the following command results?
|
|
Okay, I've uploaded prebuilt binaries for Linux x64. |
Awesome! I can successfully install now. Thanks @dbaba |
Hey, is there a sample flow that can be used for getting started and to understand the node? |
You can import an example flow from the menu icon, Import -> Examples -> lwm2m -> 01.basic-operations. I also published a step-by-step tutorial here. |
Great! Managed to get it work with the example. However, I'm having trouble getting the server to connect when I've a NB-IoT module with my Raspberry Pi. The module already attached to network. Any idea how to make it work over NB-IoT? I'm using SIMCOM 7000C module. |
Sounds interesting. Unfortunately, I've never tried NB-IoT as no carriers are yet operating it... |
It's a bit different with LTE Cat1. Some NB modules support only UDP. I'm checking with the module vendor on this. Will keep you posted here. I did try my RPi with Leshan sandbox server and it worked great. Thanks for this great work! |
Mmm, very interesting. I'm looking forward to hearing the updates! I'd like to look into NB-IoT and LTE-M as well, but here in Japan, I can't. Some of carriers say they will launch soon but I'm not sure when it is 😩 |
Hey, I finally figured out how to use a NB-IoT/ CAT-M1 module connected to a raspberry pi. Basically yo got to set up a ppp chat script. I followed the steps stated here and got the LWM2M client access over NB-IoT/ CAT-M1. http://sixfab.com/updated-tutorial-2-make-a-ppp-internet-connection-with-sixfab-gprs-shield-on-raspberry-pi/ |
Do you have more examples? When I try to write to for example /3/0/1 I get the following error:
|
Thanks for the info. I understood where you got stuck.
|
Hi,
I'm unable to install this with my node-red. Here is the error I get when I try installing:
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --target_arch=x64 --mo dule=/home/demo/.node-red/node_modules/node-red-contrib-lwm2m/dist/binding/node-v48-linux-x64/node_lwm2m.node --module_name=node_lwm2m --modul e_path=/home/demo/.node-red/node_modules/node-red-contrib-lwm2m/dist/binding/node-v48-linux-x64' (1) npm WARN node-red-project@0.0.1 No repository field. npm WARN node-red-project@0.0.1 No license field. npm ERR! Linux 4.9.0-3-amd64 npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-contrib-lwm2m" npm ERR! node v6.11.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! node-red-contrib-lwm2m@0.1.3 install:
node-pre-gyp install --fallback-to-build --target_arch=${ARCH:-$(node -e 'console.log(require("os").arch())')}
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-red-contrib-lwm2m@0.1.3 install script 'node-pre-gyp install --fallback-to-build --target_arch=${ARCH:-$(node -e 'conso le.log(require("os").arch())')}'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the node-red-contrib-lwm2m package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build --target_arch=${ARCH:-$(node -e 'console.log(require("os").arch())')} npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-red-contrib-lwm2m npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-red-contrib-lwm2m npm ERR! There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: