![](/img/trans.png)
[英]'appium' is not recognized as an internal or external command, operable program or batch file
[英]'ENVFILE' is not recognized as an internal or external command, operable program or batch file
當我運行遷移時。 我看到了這個問題。 基本上,我正在嘗試實現 create_photos_table。
cp .env.example .env.jest
和yarn test --passWithNoTests
來自react-native-config的文檔,這可能是 Knex 在這里使用的:
$ ENVFILE=.env.staging react-native run-ios # bash
$ SET ENVFILE=.env.staging && react-native run-ios # windows
$ env:ENVFILE=".env.staging"; react-native run-ios # powershell
因此,在您的情況下,您需要在 Windows 上使用SET ENVFILE=.env
而不是ENVFILE=.env
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.