前提
Windows環境でReact Nativeでのアプリ作成のための環境構築を行っています。
Windows PowerShellにて、expoを立ち上げようとした際に以下エラーが起きています。
実現したいこと
・expoを立ち上げて、プロジェクトの新規作成を行いたい
発生している問題・エラーメッセージ
Error: Problem validating fields in app.json. See https://docs.expo.io/workflow/configuration/ • should NOT have additional property 'nodeModulesPath'. C:\Users\pomba\Dev\MemoApp\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:156 cmd.option(opt.name, opt.description ?? '', opt.parse || (val => val), typeof opt.default === 'function' ? opt.default(rest[0]) : opt.default); ^ SyntaxError: Unexpected token ? at new Script (vm.js:79:7) at createScript (vm.js:251:10) at Object.runInThisContext (vm.js:303:10) at Module._compile (internal/modules/cjs/loader.js:656:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) Metro Bundler process exited with code 1 Error: Metro Bundler process exited with code 1 at ChildProcess.packagerProcess.once (C:\@expo\xdl@58.0.19\src\Project.ts:1596:16) at Object.onceWrapper (events.js:273:13) at ChildProcess.emit (events.js:182:13) at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
該当のソースコード
ソースコード
試したこと
・expo-cliのバージョンを最新のものにアップデートする
→「Node.js v10.13.0 is no longer supported.」とエラーが出る
・Nodeのバージョンを19.1.0にし、expo-cliのバージョンを最新のものにアップデートする
→「Node.js v10.13.0 is no longer supported.」とエラーが出る
補足情報(FW/ツールのバージョンなど)
Node.js→v14.15.0
expo-cli→3.28.5
npm→6.14.8ボールドテキスト

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/12/11 06:32