Page 2 of 2

Re: LIBUSB_ERROR_ACCESS

Posted: Wed Dec 23, 2015 1:34 am
by chad
natekicksa wrote:oh i have mac osx lion 10.7.5, i download everything but everytime i try to put the file extension into the terminal, it says shows password, then i type in my password and then it says error, this command does not exist. what do you think is going on?
I'm not sure what you mean by:
everytime i try to put the file extension into the terminal
Can you please explain exactly what you're doing?

Re: LIBUSB_ERROR_ACCESS

Posted: Wed Dec 23, 2015 1:38 am
by natekicksa
okay so the crazyflie demo on the cylon.js site, I copy and pasted it into a notepad program and i named it as test.js , everytime i try to run test.js in the terminal(type in test.js in the terminal to run it) it says "Command does not exist" or "No such file or directory"...

Re: LIBUSB_ERROR_ACCESS

Posted: Wed Dec 23, 2015 1:44 am
by chad
natekicksa wrote:okay so the crazyflie demo on the cylon.js site, I copy and pasted it into a notepad program and i named it as test.js , everytime i try to run test.js in the terminal(type in test.js in the terminal to run it) it says "Command does not exist" or "No such file or directory"...
I see. What "notepad program" did you use? It might be saving the file as something other than text and just changing the extension to '.js' won't help that. Also, your file is not executable. You need to run it by passing it as an argument to node. Type "node" into the Terminal and then drag the fie to the Terminal.

But, all of this will be moot because it won't work anyway specifically for the reasons listed in the thread above. Unless of course you have a very old nodejs install (like 0.3.11 or older).

Good luck!

Re: LIBUSB_ERROR_ACCESS

Posted: Wed Dec 23, 2015 1:56 am
by natekicksa
alright, i will try your methods, whats your email, i might have more questions on this... @chad and i used sublime text editor

Re: LIBUSB_ERROR_ACCESS

Posted: Wed Dec 23, 2015 2:00 am
by chad
natekicksa wrote:whats your email, i might have more questions on this...
:roll:

Re: LIBUSB_ERROR_ACCESS

Posted: Wed Dec 23, 2015 2:15 am
by natekicksa
wait another question, sorry about that but couldnt you just install an older version of node.js and get it to work? @chad

Re: LIBUSB_ERROR_ACCESS

Posted: Thu Dec 24, 2015 1:49 am
by chad
natekicksa wrote:wait another question, sorry about that but couldnt you just install an older version of node.js and get it to work? @chad
With all due respect natekicksa, there's nothing more annoying than a question that shows you haven't even read the thread you're replying to. This has already been answered here.

The version of node-usb that works is too old to work with the current nodejs releases. To use a working node-usb module you have to downgrade to nodejs 0.3.11. This is quite the downgrade from 4.2.4 and most people doing this would likely not want such an old release. If you do not mind, have at it then.

1)
I also tried to simply install an earlier version of node-usb but that cause npm to throw a bunch of errors I didn't want to look into. I don't think that's a viable option unless you downgrade node as well, which is likely a non-starter as well.
2)
But, all of this will be moot because it won't work anyway specifically for the reasons listed in the thread above. Unless of course you have a very old nodejs install (like 0.3.11 or older).

Re: LIBUSB_ERROR_ACCESS

Posted: Thu Dec 24, 2015 7:19 pm
by natekicksa
sorry about that chad, i was just curious. thanks for your help

Re: LIBUSB_ERROR_ACCESS

Posted: Tue Jan 19, 2016 7:15 am
by adjavaherian
fyi, I was just working on a node-usb version of the radio driver and ran into a similar problem with lib_usb. I think you need to downgrade to node 0.12.7 if you haven't already and then re-run npm install. try the n node version manager if you haven't yet? https://github.com/tj/n