
flutter --version 코드를 치면 아래와 같은 내용이 나옵니다.
환경 변수 설정이 안된 것 같은데 저도 잘 모르겠네요 ㅠㅠ
flutter 버전은 3.10.5 이고 macOS 버전은 Ventura 13.2.1 입니다.

코드와 에러 전문입니다.
작성한 코드 및 에러 메세지
(base) sangwoo@MacBookAir ~ % sudo softwareupdate --install-rosetta --agree-to-license
Password:
By using the agreetolicense option, you are agreeing that you have run this tool with the license only option and have read and agreed to the terms.
If you do not agree, press CTRL-C and cancel this process immediately.
2023-06-24 00:28:39.923 softwareupdate[20771:600993] Package Authoring Error: 032-48321: Package reference com.apple.pkg.RosettaUpdateAuto is missing installKBytes attribute
Install of Rosetta 2 finished successfully
(base) sangwoo@MacBookAir ~ % echo 'export PATH="$PATH:$HOME/development/flutter/bin"' >> ~/.zshrc && source ~/.zshrc
(base) sangwoo@MacBookAir ~ % flutter --version
Unhandled exception:
Exception: Flutter failed to create a directory at "/Users/sangwoo/.config/flutter".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 _throwFileSystemException (package:flutter_tools/src/base/error_handling_io.dart:834:3)
#2 _handlePosixException (package:flutter_tools/src/base/error_handling_io.dart:764:3)
#3 _runSync (package:flutter_tools/src/base/error_handling_io.dart:600:7)
#4 ErrorHandlingDirectory.createSync (package:flutter_tools/src/base/error_handling_io.dart:427:12)
#5 new Config._common (package:flutter_tools/src/base/config.dart:76:17)
#6 new Config (package:flutter_tools/src/base/config.dart:37:19)
#7 new _DefaultPersistentToolState (package:flutter_tools/src/persistent_tool_state.dart:65:18)
#8 new PersistentToolState (package:flutter_tools/src/persistent_tool_state.dart:21:9)
#9 runInContext.<anonymous closure> (package:flutter_tools/src/context_runner.dart:293:34)
#10 AppContext._generateIfNecessary.<anonymous closure> (package:flutter_tools/src/base/context.dart:104:42)
#11 _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:535:23)
#12 AppContext._generateIfNecessary (package:flutter_tools/src/base/context.dart:92:20)
#13 AppContext.get (package:flutter_tools/src/base/context.dart:121:32)
#14 PersistentToolState.instance (package:flutter_tools/src/persistent_tool_state.dart:35:55)
#15 persistentToolState (package:flutter_tools/src/globals.dart:77:69)
#16 _defaultBotDetector (package:flutter_tools/src/globals.dart:83:24)
#17 _defaultBotDetector (package:flutter_tools/src/globals.dart)
#18 botDetector (package:flutter_tools/src/globals.dart:79:62)
#19 isRunningOnBot (package:flutter_tools/src/globals.dart:89:36)
#20 runInContext.runnerWrapper (package:flutter_tools/src/context_runner.dart:80:34)
#21 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#22 _rootRun (dart:async/zone.dart:1399:13)
#23 _CustomZone.run (dart:async/zone.dart:1301:19)
#24 _runZoned (dart:async/zone.dart:1804:10)
#25 runZoned (dart:async/zone.dart:1747:10)
#26 AppContext.run (package:flutter_tools/src/base/context.dart:149:12)
#27 runInContext (package:flutter_tools/src/context_runner.dart:84:18)
#28 run (package:flutter_tools/runner.dart:49:10)
#29 main (package:flutter_tools/executable.dart:91:16)
#30 main (file:///Volumes/Work/s/w/ir/x/w/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:14)
#31 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:294:33)
#32 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
