Closed pocahozas closed 3 years ago
You are missing NPM, you will first need to install NPM (and probably node). Since you do not have NPM installed, you cannot install the Tuya-cli.
Same issue here trying to add localtuya and now it requires npm. I'm scratching my head at this point.
Can you point us in the right direction please? Running Home Assistant OS 5.13
There are multiple ways to install Node & NPM. I recommend using nvm.
Hello codetheweb! I tried using the link. I just copied the command into the git bash. It did install something but the npm command still not work. Any other suggestion? Cheers.
You'll have to restart your shell / make a new one if you haven't already after installing nvm for it to activate. You also have to install a Node.js version after installing nvm with something like nvm install node
.
thx guys, its working now. That's what I did:
Hello. I have a problem, maybe it's just a beginners problem. I am using a raspberry Pi 4 con HASSIO.
I have problems with the command line. When I run npm i @tuyapi/cli -g, I get the following error: "bash: npm: command not found" so that I cannot install npm. The same issue when running tuya-cli wizard, I get the following error: -bash: tuya-cli: command not found
What is the way to do it correctly
Thank you very much