Skip to content
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

Cannot find the '/cylon/' module. Cylon-ble #365

Open
kiran-neobric opened this issue May 22, 2017 · 0 comments
Open

Cannot find the '/cylon/' module. Cylon-ble #365

kiran-neobric opened this issue May 22, 2017 · 0 comments

Comments

@kiran-neobric
Copy link

kiran-neobric commented May 22, 2017

I am trying to access bluetooth devices using the cylon-ble package. But unfortunately, when I tried to access the js using node, it throwing the error

"Cannot find the '/Users/kiran/Desktop/cylon_test/cylon/' module.
This problem might be fixed by installing it with 'npm install /Users/kiran/Desktop/cylon_test/cylon/' and trying again.
"

Please see full stack here. (cylon, cylon-ble gloab install as a sudo user in mac osx). I have the same issue with the windows OS as well. (Windows 7 X64).

Please Note: I have used the example found here. I just copied the code and placed in the index.js file and ran it with node. (node index.js).

sh-3.2# npm install cylon -g

/usr/local/lib
└── [email protected]

sh-3.2# npm install cylon-ble -g

/usr/local/bin/cylon-ble-scan -> /usr/local/lib/node_modules/cylon-ble/bin/blescan.js
/usr/local/bin/cylon-ble-info -> /usr/local/lib/node_modules/cylon-ble/bin/bleinfo.js
/usr/local/lib
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@^0.5.1 (node_modules/cylon-ble/node_modules/noble/node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})

sh-3.2# node index.js

Cannot find the '/Users/neobric/Desktop/cylon_test/cylon/' module.
This problem might be fixed by installing it with 'npm install /Users/neobric/Desktop/cylon_test/cylon/' and trying again.
Terminated: 15

sh-3.2#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant