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

error Command "flow-node" not found #30290

Closed
krmao opened this issue Oct 31, 2020 · 2 comments
Closed

error Command "flow-node" not found #30290

krmao opened this issue Oct 31, 2020 · 2 comments
Labels
Flow Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.

Comments

@krmao
Copy link

krmao commented Oct 31, 2020

Description

when run pod install for ios project, got error below:

% pod install
Analyzing dependencies
Downloading dependencies
Installing Folly 2018.10.22.00
Installing React-Fabric (0.62.2)
[!] /bin/bash -c
set -e
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# This script collects the "core" component schemas used by fabric
# then uses react-native-codegen to generate the component headers
# to a location that the podspecs expect.

# shellcheck disable=SC2038

find "$PWD/../Libraries" -name "*NativeComponent.js" -print | xargs yarn flow-node packages/react-native-codegen/src/cli/combine/combine-js-to-schema-cli.js schema-rncore.json
yarn flow-node packages/react-native-codegen/buck_tests/generate-tests.js schema-rncore.json rncore ReactCommon/fabric/components/rncore rncore

yarn run v1.22.10
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command "flow-node" not found.

React Native version:

v0.62.2

Steps To Reproduce

PodfileForRNRemote
Podfile

  1. pod 'React-Fabric', '0.62.2'

Expected Results

yarn run v1.22.10
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command "flow-node" not found.

Snack, code example, screenshot, or link to a repository:

example project on github

@hramos
Copy link
Contributor

hramos commented Oct 31, 2020

Are you pulling in the iOS template from master by any chance? The Podfile that invokes this script shouldn't be part of the 0.62.2 version, as it just landed recently and should not be part of a release until 0.64 at the earliest.

@krmao
Copy link
Author

krmao commented Nov 1, 2020

thank you for answer !

yeah, I did execute the script on tag v0.62.2

krmao@LPT45573 react-native % git branch && git status && git remote -vv
* local/v0.62.2
  master
On branch local/v0.62.2
nothing to commit, working tree clean
origin	https://github.com/krmao/react-native.git (fetch)
origin	https://github.com/krmao/react-native.git (push)
upstream	git://github.com/facebook/react-native.git (fetch)
upstream	git://github.com/facebook/react-native.git (push)
krmao@LPT45573 react-native % git l -7
* 1a041a8573 2020-10-30 | export rn_node_modules path (HEAD -> local/v0.62.2, tag: v0.62.2.1)  (kr.mao)
* fdecba7a48 2020-10-30 | custom scripts/process-podspecs.sh  (kr.mao)
* b9944e54ae 2020-04-08 | [0.62.2] Bump version numbers (tag: v0.62.2, upstream/0.62-stable)  (Eloy Durán)
* f89c5098be 2020-04-07 | Make Vibration.vibrate compatible with TurboModules (#27951)  (Bruno Barbieri)
* 8858d879eb 2020-04-07 | Exclude all FlipperKit transitive dependencies from iOS Release builds (#28504)  (Javier Cuevas)
* 4fd9c9d544 2020-04-06 | Fix Appearance module when using Chrome Debugger  (Eli White)
* 6e530d9aed 2020-04-06 | Move DebugEnvironment helper to open source  (Eli White)

which is not the branch master

krmao@LPT45573 react-native222 % git s
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
krmao@LPT45573 react-native222 % git l -4
*   3ab151ba49 2020-10-30 | Merge remote-tracking branch 'upstream/master' (HEAD -> master, origin/master, origin/HEAD)  (kr.mao)
|\
| * ab21d7320e 2020-10-29 | Fix crash in RCTEventEmitter (upstream/master)  (Peter Argany)
| * e37708dfb6 2020-10-29 | Allow image loaders to enable/disable image telemetry  (Paige Sun)
* |   ecdf497d2a 2020-10-30 | Merge pull request #1 from facebook/master (tag: remove)  (Michael)
|\ \
| |/
krmao@LPT45573 react-native222 %

but I did just remove the command from .podspec and pod install success.

@krmao krmao closed this as completed Nov 1, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Nov 1, 2021
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Flow Needs: Triage 🔍 Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants