TuyaAPI / cli

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

node: v10.15.3 npm: 6.4.1 install error #13

Closed warpkwd closed 5 years ago

warpkwd commented 5 years ago

git clone

npm list --depth=0 ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by svg-inline-react@1.0.3 if global install is same.

codetheweb commented 5 years ago

Looks like NPM is trying to install the package by cloning the repo?

Can you please post the full output of npm i @tuyapi/cli -g?

warpkwd commented 5 years ago

PS C:\Users\usrXXX> npm i @tuyapi/cli -g npm WARN deprecated clipboard-js@0.3.6: Please migrate to https://github.com/lgarron/clipboard-polyfill C:\Program Files\nodejs\tuya-cli -> C:\Program Files\nodejs\node_modules\@tuyapi\cli\cli.js npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.

PS C:\Users\usrXXX> npm list -g C:\Program Files\nodejs

npm ERR! peer dep missing: react@^0.14.0 || ^15.0.0, required by svg-inline-react@1.0.3

codetheweb commented 5 years ago

So what happens if you run tuya-cli help?

warpkwd commented 5 years ago

tuya-cli help is ok. No problem.

codetheweb commented 5 years ago

Ok, forgive me for not understanding, but what's the problem?

warpkwd commented 5 years ago

I'm worried about install error. Maybe the display of the QR code doesn't work. I did not go to the point where I actually try it.

codetheweb commented 5 years ago

I think it's probably fine. I suspect it's an issue with a different global package you have installed.

If something ends up not working, feel free to reopen this.

ZManzanares87 commented 1 year ago

i have this error , npm -v not ok Use npm v9.6.4 what its mean and how can i fix it?