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

tuya-cli on OpenWrt -> Error. #58

Closed
puppinoo opened this issue Feb 1, 2020 · 4 comments
Closed

tuya-cli on OpenWrt -> Error. #58

puppinoo opened this issue Feb 1, 2020 · 4 comments

Comments

@puppinoo
Copy link

puppinoo commented Feb 1, 2020

Hi,
I tried to install tuya-cli on my Lede router. installation went fine but when I try to launch it I receive this error. Any advice?

Regards.
Pino.

`tuya-cli
internal/util.js:214
throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'function');
^

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function
at Object.promisify (internal/util.js:214:11)
at Object. (/usr/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/get-response.js:8:25)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/usr/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/request-as-event-emitter.js:13:24)

`

@codetheweb
Copy link
Member

I'm guessing your Node.js version is too old. What's the output of node -v?

@puppinoo
Copy link
Author

puppinoo commented Feb 1, 2020

I'm guessing your Node.js version is too old. What's the output of node -v?

node -v
v8.16.0

@puppinoo
Copy link
Author

puppinoo commented Feb 1, 2020

You were right. I updated my node version to v12.14.1 and now everything seems to work.

Thanks a lot for your amazing work (I also add that installing stuff on routers with custom firmwares is great btw).

Regards.
Pino.

@codetheweb
Copy link
Member

👍

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

2 participants