【发布时间】:2021-05-02 07:08:39
【问题描述】:
错误:验证 app.json 中的字段时出现问题。见https://docs.expo.io/workflow/configuration/ • 不应有附加属性“nodeModulesPath”。
app.json
"expo": {
"name": "fludder",
"slug": "fludder",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/Fludder-App-Icon-Android.png",
"splash": {
"image": "./assets/LaunchScheen.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.fludder.fludderapp",
"buildNumber": "1.0.0",
"infoPlist": {
"NSCameraUsageDescription": "This app uses the camera to record your answer.",
"NSPhotoLibraryAddUsageDescription": "This app uses your photo library to get recorded video.",
"NSMicrophoneUsageDescription": "This app requires access to your microphone"
}
},
"web": {
"favicon": "./assets/Fludder-App-Icon-Android.png"
},
"description": "",
"android": {
"package": "com.fludder.fludderapp",
"versionCode": 3,
"googleServicesFile": "./google-services.json"
}
}
}
【问题讨论】:
-
显示你的
app.json -
我已经添加了我的 app.json
-
也运行了 npm i -g expo-cli 但执行后它显示的是旧版本 4.0.13 而不是 4.4.3。请帮帮我。
标签: react-native npm expo