简体   繁体   中英

'ENVFILE' is not recognized as an internal or external command, operable program or batch file

ENVFILE

When I run the migrations. I see this issue. Basically, I'm trying to implement the create_photos_table.

  1. Cloned repo
  2. Ran cp .env.example .env.jest and yarn test --passWithNoTests
  3. Changed the password in .env.jest

from the documentation of react-native-config which is what Knex is probably using here:

$ 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

So in your case, you will need to use SET ENVFILE=.env on Windows instead of ENVFILE=.env .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM