npm install codetheweb/tuyapi
me salta lo siguiente:
Código: Seleccionar todo
pi@raspberrypi:~/Tuya $ npm install codetheweb/tuyapi
(node:2533) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
tuyapi@3.2.2 ../node_modules/tuyapi
├── retry@0.10.1
├── p-timeout@2.0.1 (p-finally@1.0.0)
├── debug@4.1.1 (ms@2.1.1)
├── node-forge@0.8.0
└── crc@3.8.0 (buffer@5.2.1)
npm i @tuyapi/cli -g
me salta los siguientes errores aunque lo ejecute con sudo.
Código: Seleccionar todo
pi@raspberrypi:~/Tuya $ npm i @tuyapi/cli -g
(node:2553) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! git clone git@github.com:tuyapi/cli Cloning into bare repository '/home/pi/.npm/_git-remotes/git-github-com-tuyapi-cli-3083bead'...
npm ERR! git clone git@github.com:tuyapi/cli Permission denied (publickey).
npm ERR! git clone git@github.com:tuyapi/cli fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:tuyapi/cli
npm ERR! git clone git@github.com:tuyapi/cli Please make sure you have the correct access rights
npm ERR! git clone git@github.com:tuyapi/cli and the repository exists.
npm ERR! addLocal Could not install tuyapi/cli
npm ERR! Error: ENOENT: no such file or directory, stat 'tuyapi/cli'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 4.14.79-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "i" "@tuyapi/cli" "-g"
npm ERR! cwd /home/pi/Tuya
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! path tuyapi/cli
npm ERR! syscall stat
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Tuya/npm-debug.log
npm ERR! not ok code 0