Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to check the installed Node.js version in your terminal.
React Native
node [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'node version' instead of a flag.
Using '--version' which is valid but longer.
✗ Incorrect
Use node -v to quickly see the Node.js version installed on your system.
2fill in blank
mediumComplete the command to install Watchman on macOS using Homebrew.
React Native
brew [1] watchman Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'brew update watchman' which updates Homebrew itself.
Using 'brew remove watchman' which uninstalls the package.
✗ Incorrect
Use brew install watchman to install Watchman on macOS.
3fill in blank
hardFix the error in the command to open Xcode from the terminal.
React Native
[1] /Applications/Xcode.app Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' which works on Windows but not macOS.
Using 'launch' or 'run' which are not valid commands.
✗ Incorrect
Use open /Applications/Xcode.app to launch Xcode from the terminal on macOS.
4fill in blank
hardFill both blanks to set ANDROID_HOME environment variable in macOS terminal.
React Native
export [1]=[2]/Library/Android/sdk
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ANDROID_SDK' instead of 'ANDROID_HOME'.
Using '~' instead of '$HOME'.
✗ Incorrect
Set ANDROID_HOME to the Android SDK path using $HOME for the user directory.
5fill in blank
hardFill all three blanks to add Android platform tools to PATH in macOS terminal.
React Native
export PATH=[1]/bin:[2]/platform-tools:[3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Not including existing PATH in the new PATH variable.
Using literal paths instead of variables.
✗ Incorrect
Use $HOME for home directory, $ANDROID_HOME for SDK path, and $PATH to keep existing PATH entries.