0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

The global expo-cli package has been deprecatedと表示されてしまうときの対処法

Posted at

terminalでこのような表示がなされるときの解決策

┌───────────────────────────────────────────────────────────────────────────┐
│                                                                           │
│   The global expo-cli package has been deprecated.                        │
│   The new Expo CLI is now bundled in your project in the expo package.    │
│   Learn more: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421.        │
│                                                                           │
│   To use the local CLI instead (recommended in SDK 46 and higher), run:   │
│   › npx expo <command>                                                    │
│                                                                           │
└───────────────────────────────────────────────────────────────────────────┘
Starting project at C:\Users\kntas\setsuyaku\setsuyaku-app
ExpoMetroConfig.loadAsync is not a function
TypeError: ExpoMetroConfig.loadAsync is not a function
    at runMetroDevServerAsync (C:\Users\kntas\setsuyaku\setsuyaku-app\node_modules@expo\dev-server\src\MetroDevServer.ts:86:45)
    at startDevServerAsync (C:\Users\kntas\setsuyaku\setsuyaku-app\node_modules\xdl\src\start\startDevServerAsync.ts:75:77)
    at startAsync (C:\Users\kntas\setsuyaku\setsuyaku-app\node_modules\xdl\src\start\startAsync.ts:84:41)

以下のコードを実行します

$ npx expo upgrade
$ npm install --force

これで問題解決

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?