Skip to content

Can't install #3

@scargill

Description

@scargill

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]>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions