試作機器: orgpi58g.yushei.net, breadOS, arch

1, install

$ sudo pacman -S nodejs npm
$ sudo npm install --global yarn
[alexlai@orgpi58G build]$ which yarn
/usr/bin/yarn
[alexlai@orgpi58G build]$ yarn --version
1.22.21
  1. yarn create keystone-app
$ yarn create keystone-app
yarn create v1.22.21
(node:47939) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "create-keystone-app@9.0.1" with binaries:
      - create-keystone-app

✨ You're about to generate a project using Keystone 6 packages.

✔ What directory should create-keystone-app generate your app into? · keystone-6-demo

⠏ Installing dependencies with yarn. This may take a few minutes.
⚠ Failed to install with yarn.  <--- error
⠴ Installing dependencies with npm. This may take a few minutes.
✔ Installed dependencies with npm.


🎉  Keystone created a starter project in: keystone-6-demo

  To launch your app, run:

  - cd keystone-6-demo
  - npm run dev

  Next steps:

  - Read keystone-6-demo/README.md for additional getting started details.
  - Edit keystone-6-demo/keystone.ts to customize your app.
  - Open the Admin UI (​http://localhost:3000​)
  - Open the Graphql API (​http://localhost:3000/api/graphql​)
  - Read the docs (​https://next.keystonejs.com​)
  - Star Keystone on GitHub (​https://github.com/keystonejs/keystone​)

Done in 311.81s.
  1. npm run dev
$ cd keystone-6-demo/
$ npm run dev

> keystone-app@1.0.2 dev
> keystone dev

✨ Starting Keystone
(node:48432) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
⭐️ Server listening on :3000 (http://localhost:3000/)
⭐️ GraphQL API available at /api/graphql
✨ Generating GraphQL and Prisma schemas
✨ The database is already in sync with the Prisma schema
✨ Connecting to the database
✨ Creating server
✅ GraphQL API ready
✨ Generating Admin UI code
✨ Preparing Admin UI app
✅ Admin UI ready
✅ Admin UI ready
 ○ Compiling /init ...
 ✓ Compiled /init in 8.3s (1999 modules)

keynote-6-3000.jpg keynote-6-3000-01.jpg keynote-6-3000-02.jpg

試作機器: h2Jammy.yushei.net, ubuntu Jammy 22.04

  1. install nodeJs, yarn
$ sudo apt update && sudo apt install nodejs
alexlai@h2Jammy:~/build$ sudo npm install --global yarn
alexlai@h2Jammy:~/build$ which yarn
/usr/local/bin/yarn
alexlai@h2Jammy:~$ echo $PATH
/usr/local/pgsql/bin:/home/alexlai/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
alexlai@h2Jammy:~$ yarn --version
1.22.21

  1. create keystone-app

yarn create keystone-app --> failed with ubunut 22.04