TuyaAPI / cli

🔧 A CLI for Tuya devices
MIT License
266 stars 43 forks source link

AppleDouble error #12

Closed gazzmanzx6 closed 5 years ago

gazzmanzx6 commented 5 years ago

Hi,

I am getting the following error in Raspbian Stretch when I run npm commands after installing TuyaAPI/cli.

npm ERR! code E404 npm ERR! 404 Not found : @tuyapi/.AppleDouble npm ERR! 404 npm ERR! 404 '@tuyapi/.AppleDouble' is not in the npm registry. npm ERR! 404 Your package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

The error goes if I remove TuyaApi/cli.

Any ideas what might be wrong?

Thanks.

codetheweb commented 5 years ago

That's a pretty strange error; what command are you running to install the CLI?

gazzmanzx6 commented 5 years ago

I’m using npm i @tuyapi/cli -g

codetheweb commented 5 years ago

What happens if you make a new directory somewhere on your machine and try installing locally with npm i @tuyapi/cli (without the -g flag)?

gazzmanzx6 commented 5 years ago

I tried installing locally but I can't get it run at all.I get command not found error. I'm not in any way an expert with npm so have probably done something wrong.

codetheweb commented 5 years ago

Try prefixing with npx when using a local install. For example: npx tuya-cli --help.