Quick start to running Keystone.js on Windows.
- Make sure you have Node installed at least version 10.x plus
- Pick your Database (Mongo Db version 4.x plus OR Postgresql version 9.x plus)
- Open up a command prompt
npm init keystone-app my-appor
yarn create keystone-app my-app
npm run dev or yarn dev
Help! My Build Breaks
When I completed the above, I ran into multiple errors. If you run into an error with Cannot find module "\node_modules@keystonejs\keystone\bin\cli.js" follow the below.
Your project is failing to install because it can't install BCrypt. It has dependencies on C++ and Python. The quick fix is to install windows-build-tools and run npm install manually.
- Open a CMD window in administrator
npm i windows-build-tools -gor
yarn global add windows-build-tools
- cd into your root directory
npm run devor
If this doesn't fix your problem make sure you checkout the latest instructions on Keystone.js getting started as the above might be out dated.