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

Can't install #3

Open
scargill opened this issue Apr 8, 2022 · 0 comments
Open

Can't install #3

scargill opened this issue Apr 8, 2022 · 0 comments

Comments

@scargill
Copy link

scargill commented Apr 8, 2022

Hi there

Having just received a pair of Switchbot bots and realised they only work with an APP via BT, I'm itching to try your code with MQTT on my Raspberry Pi 4.

But - I cannot get past install, I've tried as user pi, tried with sudo - and tried as user root.

npm install -g https://github.com/binsentsu/switchbot-ctrl
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q https://github.com/binsentsu/switchbot-ctrl.git /root/.npm/_cacache/tmp/git-clone-000dc492/.git
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-000dc492/.git'
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-04-08T08_35_49_841Z-debug.log
root@mainpi:~:10:35[1]> c .npm
-bash: c: command not found
root@mainpi:~:10:48[127]> cd .npm
root@mainpi:.npm:10:48[0]> cd _cacache
root@mainpi:_cacache:10:48[0]> cd tmp
root@mainpi:tmp:10:48[0]> cd git-clone-000dc492
-bash: cd: git-clone-000dc492: No such file or directory
root@mainpi:tmp:10:48[1]>
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