在安装Keystone @ next 4.0 beta时遇到问题

时间:2018-04-03 05:13:54

标签: node.js content-management-system keystonejs

我在安装 Keystone @ next (测试版)时遇到问题。我正在使用以下命令。

我在 D:/ keystone 驱动器

中执行了npm init
npm install --save keystone@next

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

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

1 个答案:

答案 0 :(得分:0)

试试generator-keystone。您需要在使用generator-keystone之前安装Yeoman。几个月前我使用过Yeoman发电机,当时我为我安装了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"
  }
}