helium / maker-starter-app

Apache License 2.0
37 stars 37 forks source link

helium/maker-starter-appfo yarn install error in windows10 #46

Open biben1989 opened 2 years ago

biben1989 commented 2 years ago

I cloned the open source code of helium/maker-starter-appfor local runtime. When I install the dependencies using yarn install I get the following error.Have you ever encountered such a problem? Can you give me any tips on what I need to do? Thank you very much.

yarn install v1.22.5 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.2: The platform "win32" is incompatible with this module. info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "@helium/crypto-react-native@^3.9.0". warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "@helium/currency@^3.25.1". warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "@helium/http@^3.43.0". warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "@helium/onboarding@^3.59.0". warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "@helium/proto-ble@^3.37.0". warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "@helium/transactions@^3.38.0". warning " > @helium/react-native-sdk@1.0.0" has unmet peer dependency "events@^3.3.0". warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "h3-js@^3.7.2". warning " > @helium/react-native-sdk@1.0.0" has incorrect peer dependency "query-string@^7.0.1". warning " > @helium/react-native-sdk@1.0.0" has unmet peer dependency "readable-stream@^3.6.0". warning " > @helium/react-native-sdk@1.0.0" has unmet peer dependency "stream@^0.0.2". warning " > @helium/wallet-link@4.6.2" has unmet peer dependency "@helium/crypto@^4.3.1". warning " > @react-native-mapbox-gl/maps@8.2.0-beta2" has unmet peer dependency "prop-types@>=15.5.8". warning " > @react-native-mapbox-gl/maps@8.2.0-beta2" has incorrect peer dependency "react@^16.6.1". warning " > @react-navigation/stack@5.14.4" has unmet peer dependency "@react-native-community/masked-view@>= 0.1.0". warning "expo-camera > @koale/useworker@4.0.2" has incorrect peer dependency "react@^16.8.0". warning " > react-native@0.66.3" has incorrect peer dependency "react@17.0.2". warning "react-native > react-native-codegen > jscodeshift@0.11.0" has unmet peer dependency "@babel/preset-env@^7.1.6". warning " > react-native-appstate-hook@1.0.5" has incorrect peer dependency "react@^16.8.0". warning " > react-native-appstate-hook@1.0.5" has incorrect peer dependency "react-native@^0.59.0". warning " > react-native-config@1.4.2" has unmet peer dependency "react-native-windows@>=0.61". warning " > use-state-with-callback@2.0.3" has incorrect peer dependency "react@^16.8.6". warning " > use-state-with-callback@2.0.3" has unmet peer dependency "react-dom@^16.8.6". warning " > eslint-config-react-app@5.2.1" has incorrect peer dependency "@typescript-eslint/eslint-plugin@2.x". warning " > eslint-config-react-app@5.2.1" has incorrect peer dependency "@typescript-eslint/parser@2.x". warning " > eslint-config-react-app@5.2.1" has unmet peer dependency "babel-eslint@10.x". warning " > eslint-config-react-app@5.2.1" has incorrect peer dependency "eslint@6.x". warning " > eslint-config-react-app@5.2.1" has unmet peer dependency "eslint-plugin-flowtype@3.x || 4.x". warning " > eslint-config-react-app@5.2.1" has incorrect peer dependency "eslint-plugin-react-hooks@1.x || 2.x". warning " > react-test-renderer@17.0.2" has incorrect peer dependency "react@17.0.2". [4/4] Building fresh packages... [8/8] ⢀ @helium/react-native-sdk [-/8] ⠠ waiting... [-/8] ⠠ waiting... [4/8] ⠠ postinstall-postinstall error E:\APP\Zakazi\maker-starter-app\node_modules\@helium\react-native-sdk: Command failed. Exit code: 1 Command: rm -rf node_modules Arguments: Directory: E:\APP\Zakazi\maker-starter-app\node_modules\@helium\react-native-sdk

LeoUbl commented 1 year ago

I'm just a user and I'm not from the helium team but I think this project doesn't support building on windows, it only supports UNIX OSs like Linux and MacOS. You can also see this in the error you posted: info fsevents@2.3.2: The platform "win32" is incompatible with this module.

"rm -rf" command is exclusive of UNIX OSs so windows can't execute it. The fact that windows isn't supported isn't said anywhere in the github page and it would be nice to specify that. I don't know if this is possible but it would be nice if they also supported windows.

Corniot commented 1 year ago

First, add the following command line to the scripts of the package.json "preinstall": "cd patches && sed -i 's/\r$//' *.patch && cd.."

Second, use the git bash command-line window to run yarn