-
Notifications
You must be signed in to change notification settings - Fork 296
cannot npm install heimcontrol.js #104
Comments
Actually - sorry I was wrong - I found this issue on the serialport repo issue list: serialport/node-serialport#368 |
Let us know how it turns out. [email protected] installs fine for me (npm |
What version of node do you have installed on your rpi? I have 0.10.32? Or did you update npm itself without updating node? |
I was able to get around this issue by:
Once I did this, I was able to run npm install in the heimcontroljs dir without any issues. HOWEVER when I run node heimcontrol.js, I get an error thrown from r.js: Unexpected token ')' When I look in the requires package (bin/r.js), the r.js file appears to be truncated at the end. Any ideas? |
UPDATE: I finally got all of this working by:
I hope this helps someone else. |
Sorry you had all this trouble. For the record, my versions are:
(So there shouldn't be any need to downgrade.) |
Do you mind me asking - you're not running Debian Wheezy right? You loaded your SD card w/ 3.6.13 downloaded from http://archlinuxarm.org/platforms/armv6/raspberry-pi or similar? I suppose that's not related, but I am running Debian Wheezy and my alarmpi version is 3.12.1+ |
Yes, I use Archlinux whenever possible. Can't get used to Debian's year-old I did just try installing/building Heimcontrol on my Debian Pi, and it Maybe the crucial point is the Node version, I believe mine was compiled |
OK - I cannot get this to run. Here are my environment specs:
I first resurfaced my SD with the arch linux OS version that is available via the RPi noobs installer. That version is shown above. I then setup the linux environment (e.g., locales, swapfiles, users, etc) and installed all packages (via pacman) that I thought I would need (e.g., all the standard packages + git, node, mongo, gcc, make, etc). ** I did not install node from source -- I installed node from pacman **:
Then I:
This is what happens when I run
I have no idea what causes that, but you or anyone else do not seem to have this problem, despite seemingly having the same environment. So I then run Afterwards, I run
This is where I am at now. I've done everything I can think of, and I cannot understand how you or anyone else can clone the repo, run Any ideas? I know this is not your responsibility, and I am not complaining. I am just trying to get this up and running so I can use it. I will turn to johnny-five if I can't get this working very soon, but I would prefer to use this. Thanks in advance, |
Does If you want, you could send me an archive of the HC folder and I’ll try to reproduce it locally. |
** UPDATE ** Yes, that file at that path exists. I now have this running and I am able to browse to the site and configure the settings. To get this running, in addition to everything I've described above, I had to:
Then I ran
After these 2 steps, I was able to run Thanks for all of your attention and assistance. |
Hi, Error:
Should I try installing on ArchLinux instead? |
@kristianenge I think this issue is not related to Raspbian/Arch/npm; wiring-pi is not compiling, which is a dependency of my PiSwitch plugin. (So this is really a completely separate issue.) One workaround would be to delete the folder Other options are trying to fix the error in the source, or switching to |
@tjanson Thank you for the fast response. The workaround got me passed the error as you predicted. I will file an issue with wiring-pi . I cannot find the wiring-pi v2 repo, but maybe it isn`t released yet? |
It’s not a separate repo, it’s just the regular one [npm]– v2 was published a few days ago. You can test whether it works for you by trying |
Spent many hours yesterday on this and encountered the exact same issue, won't post any error messages as they are pretty much the same as already posted, in the end I managed to install v2 manually and then forced v2 into the heimcontrol.js directory and managed to get it past the install process without errors, but fell over at run time piswitch started looking for 1.1.2 again. Is there a way we can alter the dependency locally so it looks for 2.0 instead of 1.1.2 for now? I know it's possible to have further compatibility issues doing this without investigating the new package more thoroughly, but a big part of what I'm trying to do revolves around 433mhz controllers. |
Same Issue here. Is there any update about this issue so far? |
Due to issues with wiring-pi v1.1.2 [1], let's go with v2. It should be compatible, but I have *not* tested it. [1]: see recent posts in ni-c/heimcontrol.js#104
Can you try the following for me: Increase the version number in line 28 of
Then
|
Actually it didn't help. I installed mongopi and node via the precompiled repositories. Could that be an issue? |
Did anyone tried this application using nodejs installed on a laptop running windows 7? I'm asking because I tried and I got a lot of errors I don't understand. |
Has anyone actually built this lately? I've followed the instructions, and I've tried multiple times, and each time I get an error running npm install. I am using Node 0.10.32 / npm 1.4.28. I've run
npm instal
l w/ and w/osudo
.The first warning message I receive after running
npm install
isThen I receive
Then I receive a really long error message related to node-gyp (sorry for the long paste):
I've looked up the relevant dependency repos and I don't see any reported issues relevant to the issues that I see during install. Any ideas?
The text was updated successfully, but these errors were encountered: