Closed akeslo closed 2 years ago
I see this, too. I've tried running in a fresh Alpine Linux docker container with the same result.
Same results on my freebsd 12 box
+1
Same in Ubuntu, Ubuntu on RPi, RHEL, Windows, Windows WSL and Mac
+1 Same Ubuntu 20
I was able to circumvent this manually:
npm install
node cli.js ...
(replace ... with your options)Same in Ubuntu, Ubuntu on RPi, RHEL, Windows, Windows WSL and Mac
Thanks workaround working for me
Same here, workaround is OK for me on MacOS and in the Alpine Docker image.
At first I was absolutely sure this was unusually high-effort spam. Then I reproduced the exact same issue in my terminal.
It appears that the maintainer of a popular terminal library decided to pull a prank on all the 22m installers of his package. It seems like there might be some other weird stuff going on with him so I hope he gets better / finds some help for whatever he's going through.
Regardless, this should be fixed in v1.18.3.
@codetheweb I'm new to node (read: learnt yesterday), do you know why it worked with the workaround I mentioned? How can I reproduce this after pulling the repo?
To be honest, I'm not really sure why that worked. colors@1.4.1
is the broken version, colors@1.4.0
is a previously working version--so my fix was to change "colors": "^1.4.0"
in package.json
(which matched colors@1.4.1
) to just "colors": "1.4.0"
(which does not match colors@1.4.1
).
Not sure why npm module resolution would be slightly different between a globally installed version of @tuyapi/cli
and a local version.
Not sure why npm module resolution would be slightly different between a globally installed version of
@tuyapi/cli
and a local version.
I think I got it, it is because the package-lock file in the repo contains colors@1.4.0, which probably gets ignored during the release. But again, I'm not really familiar with node and npm.
Hi any tuya-cli command just returns a scrolling "testing" string over and over again: