我只是在Expo日志上构建我的应用程序时看到了这个警告。然后我在本地运行Expo doctor,出现了下面的警告。我尝试删除package-lock.json和节点模块,然后运行“npm安装”,但无法修复它。有什么方法可以修复它吗?
expo doctor log:
√ Found all copies of expo-modules-autolinking
Expected package expo-modules-autolinking@~0.8.1
Found invalid:
expo-modules-autolinking@0.5.5
(for more info, run: npm why expo-modules-autolinking)
√ Found all copies of @expo/config-plugins
Expected package @expo/config-plugins@^4.1.0
Found invalid:
@expo/config-plugins@4.0.18
(for more info, run: npm why @expo/config-plugins)
√ Found all copies of @expo/prebuild-config
Expected package @expo/prebuild-config@^4.0.0
Found invalid:
@expo/prebuild-config@3.1.6
(for more info, run: npm why @expo/prebuild-config)
🎉 Didn't find any issues with the project!
package.json
"@expo/config-plugins": "^4.1.5",
"@expo/prebuild-config": "^4.0.0",
"expo-modules-autolinking": "~0.8.1",
3条答案
按热度按时间busg9geu1#
将这几行放入您的package.json:
swvgeqrz2#
对于第45届世博会,请添加以下决议:
更多背景信息请点击此处:https://github.com/expo-community/standard-version-expo/issues/45
kx5bkwkv3#
嗨,伙计们,只需添加下面的代码在你的包.json文件(你的项目的根)