Programming/React Native

[React Native / ios] You need to run "nvm install default"

MOONCO 2022. 5. 18. 14:10

에러 발생

React Native 프로젝트를 생성하고, ios 가상기기를 빌드할때 발생

(  react-native run-ios )

 

에러 발생 이유

해당 오류는 현재 사용중인 Node의 버전이 지정되어 있지 않아서 발생하는 오류이다.

 

해결 방법

1. 현재 사용하는 Node.js 버전 확인

node -v

 

2. 현재 사용하는 버전의 nvm 설치 ( 예시 )

nvm install v18.0.0

 

에러 전문

N/A: version "default -> N/A" is not yet installed.

You need to run "nvm install default" to install it before using it.
Command PhaseScriptExecution failed with a nonzero exit code


2022-05-18 13:05:09.302 xcodebuild[25891:283053] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-05-18 13:05:09.302 xcodebuild[25891:283053] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/gimjinho/Library/Developer/Xcode/DerivedData/AwesomeTSProject-fejyqcesnsvnapcnvbwtvhjpywvd/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-46EB2E00014D80.sh (in target 'FBReactNativeSpec' from project 'Pods')
(1 failure)

info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

 

 

 

반응형