1、进入tuya-panel-demo/examples/basic-ts-0.59
2、npm install --force && npm run start
执行之后报错:
Code: Select all
(base) yuanxinliang@yuanxinliang basic-ts-0.59 % npm install --force && npm run start
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: commitlint-config-cz@0.13.2
npm WARN Found: @commitlint/cli@11.0.0
npm WARN node_modules/@commitlint/cli
npm WARN dev @commitlint/cli@"^11.0.0" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @commitlint/cli@"^7.0.0 || ^8.0.0 || ^9.0.0" from commitlint-config-cz@0.13.2
npm WARN node_modules/commitlint-config-cz
npm WARN dev commitlint-config-cz@"^0.13.2" from the root project
npm WARN
npm WARN Conflicting peer dependency: @commitlint/cli@9.1.2
npm WARN node_modules/@commitlint/cli
npm WARN peer @commitlint/cli@"^7.0.0 || ^8.0.0 || ^9.0.0" from commitlint-config-cz@0.13.2
npm WARN node_modules/commitlint-config-cz
npm WARN dev commitlint-config-cz@"^0.13.2" from the root project
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-test-renderer@16.14.0
npm WARN Found: react@16.8.3
npm WARN node_modules/react
npm WARN react@"16.8.3" from the root project
npm WARN 5 more (react-native, react-native-svg, react-redux, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^16.14.0" from react-test-renderer@16.14.0
npm WARN node_modules/react-test-renderer
npm WARN dev react-test-renderer@"^16.2.0" from the root project
npm WARN
npm WARN Conflicting peer dependency: react@16.14.0
npm WARN node_modules/react
npm WARN peer react@"^16.14.0" from react-test-renderer@16.14.0
npm WARN node_modules/react-test-renderer
npm WARN dev react-test-renderer@"^16.2.0" from the root project
basic-ts-0.59@1.0.1 postinstall
patch-package --patch-dir node_modules/@tuya/tuya-panel-patches/patches
patch-package 6.2.2
Applying patches...
react-native@0.59.10 ✔
react-native-svg@5.5.1 ✔
added 1871 packages in 3m
101 packages are looking for funding
run `npm fund` for details
basic-ts-0.59@1.0.1 start
node node_modules/react-native/local-cli/cli.js start
┌──────────────────────────────────────────────────────────────────────────────┐
│ │
│ Running Metro Bundler on port 8081. │
│ │
│ Keep Metro running while developing on any JS projects. Feel free to │
│ close this tab and run your own Metro instance if you prefer. │
│ │
│ https://github.com/facebook/react-native │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
/Users/yuanxinliang/Desktop/tuya-panel-demo/tuya-panel-demo/examples/basic-ts-0.59
Loading dependency graph, done.
Loading dependency graph...node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:140:10)
at stableHash (/Users/yuanxinliang/Desktop/tuya-panel-demo/tuya-panel-demo/examples/basic-ts-0.59/node_modules/metro-cache/src/stableHash.js:18:6)
at JsTransformer.getCacheKey (/Users/yuanxinliang/Desktop/tuya-panel-demo/tuya-panel-demo/examples/basic-ts-0.59/node_modules/metro/src/JSTransformer/worker.js:455:7)
at getTransformCacheKey (/Users/yuanxinliang/Desktop/tuya-panel-demo/tuya-panel-demo/examples/basic-ts-0.59/node_modules/metro/src/DeltaBundler/Transformer/getTransformCacheKey.js:39:29)
at new Transformer (/Users/yuanxinliang/Desktop/tuya-panel-demo/tuya-panel-demo/examples/basic-ts-0.59/node_modules/metro/src/DeltaBundler/Transformer.js:147:28)
at /Users/yuanxinliang/Desktop/tuya-panel-demo/tuya-panel-demo/examples/basic-ts-0.59/node_modules/metro/src/Bundler.js:53:27
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v19.1.0
请问这些版本依赖如何设置呢