Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS error(s) when try to run link command - Windows 10 (command prompt and PowerShell) #175

Open
Murffyp opened this issue Sep 9, 2024 · 0 comments

Comments

@Murffyp
Copy link

Murffyp commented Sep 9, 2024

Hi, Not sure if there is an issue with the file npm downladed, or my java installation or what (though given this isn't completely overflowing with error/issue posts, I suspect its either my java installation or some other issue). Ive attached a screengrab of the error when I run the tuya link ...etc.... command after installing. Im using windows 10 and have tried in both the command line and powershell... same issue. I've only shown one issue here (as the JS doesn't run further than character1 of line 1, but by tinkering a little, I see once this error is fixed, another error pops up later in the line, than a few lines down (syntax error there)... thats where I stopped... So I suspect if I was able to fix the few issues that have popped up thus far, id just have error after error after error, suggesting its something systemic, which is why I suspect its either my java installation or something else that I havent thought of. Has anyone run into this or similar issues. If not anyone have any ideas where to start troubleshooting?

As additional info (as im sure someone is likely to as AND im sure it might help with trouble shooting), when I run npm version I get:
{
'@tuyapi/cli': '1.18.3',
npm: '10.8.3',
node: '20.15.0',
acorn: '8.11.3',
ada: '2.7.8',
ares: '1.28.1',
base64: '0.5.2',
brotli: '1.1.0',
cjs_module_lexer: '1.2.2',
cldr: '45.0',
icu: '75.1',
llhttp: '8.1.2',
modules: '115',
napi: '9',
nghttp2: '1.61.0',
nghttp3: '0.7.0',
ngtcp2: '1.1.0',
openssl: '3.0.13+quic',
simdutf: '5.2.8',
tz: '2024a',
undici: '6.13.0',
unicode: '15.1',
uv: '1.46.0',
uvwasi: '0.0.21',
v8: '11.3.244.8-node.23',
zlib: '1.3.0.1-motley-7d77fb7'
}

I have updated my npm (I believe). Also, I have both JDK-17 and JDK-22 installed (I'm assuming that info will be helpful as well).

If theres anymore info that is needed to troubleshoot /fix the issue, please let me know and I'll provide what I can.

Thanks in advance!

Peter
First Error:
TuyAPI_tuya-cli ERROR 2024-09-08 21 26 39

Second Error:
tuya-cli JS error 2024-09-08 21 06 24

Edit: forgot the first error screengrab, added it and correctly labelled original file uploaded as second error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant