Running Keystone.js on Windows
Quick start to running Keystone.js on Windows.
Install
- 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-app
oryarn create keystone-app my-app
cd 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 -g
oryarn global add windows-build-tools
- cd into your root directory
npm install
oryarn
npm run dev
oryarn dev
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.