安装Keystone @ next(beta版)时出现问题。我正在使用以下命令。

我在D:/ Keystone驱动器中做了npm init

npm install --save keystone@next


我只是使用keystone github dir中提供的安装步骤来获取节点模块,并且缺少运行keystone项目的核心文件。

GitHub的:https://github.com/keystonejs/keystone#keystone-40-beta-released

最佳答案

尝试generator-keystone。使用generator-keystone之前,您需要安装Yeoman。几个月前,我使用了Yeoman Generator,当时它为我安装了Betastone KeystoneJS:

$ cat Documents/brand-keystonejs/package.json
{
  "name": "studio",
  "version": "0.0.0",
  "private": true,
  "dependencies": {
    "async": "2.1.4",
    "cloudinary": "1.7.0",
    "connect-mongo": "^2.0.0",
    "dotenv": "4.0.0",
    "express-handlebars": "3.0.0",
    "handlebars": "4.0.6",
    "keystone": "4.0.0-beta.5",
    "lodash": "^4.13.1",
    "moment": "2.17.1",
    "node-sass": "4.5.0",
    "node-sass-middleware": "0.11.0"
  },
  "devDependencies": {
    "eslint": "3.15.0",
    "eslint-config-keystone": "3.0.0",
    "eslint-plugin-react": "^5.1.1"
  },
  "scripts": {
    "lint": "eslint .",
    "start": "node keystone.js"
  }
}

10-06 06:58