You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing Keystone, after the process is finished script 'create-tables' in package.json has no 'cross-env' before variable 'CREATE_TABLE=true'. It causes error while running 'yarn create-tables'.
To Reproduce
Go to console and type 'yarn create keystone-app project-name'
Answer all questions:
√ What is your project name? ... project-name
√ Select a starter project » Starter (Users + Authentication)
√ Select a database type » PostgreSQL
√ Where is your database located? ... postgres://username:password@localhost/project-name
√ Test database connection? ... No / **Yes**
√ Successfully connected to postgres://username:password@localhost/project-name
√ Copying project files
Installing dependencies with yarn. This will take a few minutes.
√ Installed dependencies
� Keystone created a starter project in: project-name
Before you run Keystone you will need to initiali**s**e the tables in your database:
- yarn create-tables
Run 'yarn create-tables'
See error
'CREATE_TABLES' is not recognized as an internal or external command,
operable program or batch file.
Expected behavior
The script should run and tables must be populated with initial data.
Screenshots
System information
OS: [Windows 10]
Node 12.x
Yarn 1.22
Additional context
After adding 'cross-env' before CREATE_TABLES variable all seem to be good.
Bug report
Describe the bug
When initializing Keystone, after the process is finished script 'create-tables' in package.json has no 'cross-env' before variable 'CREATE_TABLE=true'. It causes error while running 'yarn create-tables'.
To Reproduce
Expected behavior
The script should run and tables must be populated with initial data.
Screenshots
System information
Additional context
After adding 'cross-env' before CREATE_TABLES variable all seem to be good.
The text was updated successfully, but these errors were encountered: