flarum / cli

A CLI helper for developing Flarum extensions.
MIT License
37 stars 3 forks source link

I have some questions #40

Closed 13693156733 closed 4 months ago

13693156733 commented 6 months ago

I apologize if they might seem foolish. I'm just a beginner who is learning. `flarum-cli init ksluntan.top

 _-----_     ╭──────────────────────────╮
|       |    │    Welcome to a Flarum   │
|--(o)--|    │    extension generator   │

---------´ │ │ ( _´U_ ) │ - Flarum Team │ /A\ /╰──────────────────────────╯ | ~ |
__'._.'
´ |° ´ Y

✔ Directory not empty. Overwrite? … yes ✔ Run git init? (recommended) … yes ✔ Package (vendor/extension-name) … vendor/Myobject ✔ Package description … something should be used for a anime doujin forum ✔ Package namespace (Vendor\ExtensionName) … Vendor\useing ✔ Author name … Dooooove ✔ Author email … 3156522837@qq.com ✔ Extension name … Dooooove ✔ License › MIT ✔ Main git branch (JS will automatically build when changes are pushed to GitHub on this branch) … flarum ✔ JS Package Manager › Yarn ✔ Advanced Initialization (fine-tune which features are enabled) … yes ✔ Admin Frontend … yes ✔ Forum Frontend … yes ✔ Javascript (Files, tools, and scripts to build Flarum's frontend.) … yes ✔ JS common code (Shared code between the forum and the admin frontends) … yes ✔ CSS (LESS starter files for Flarum's frontend styling.) … yes ✔ Locale (Translation starter files.) … yes ✔ Git Configuration (Git config files (e.g. .gitignore, .gitattributes).) … yes ✔ GitHub Actions CI (Automatically run checks via GitHub Actions CI. Free for open source projects.) … yes ✔ Auto-format frontend code with Prettier. … yes ✔ Support TypeScript in frontend code. … yes ✔ Enable Bundlewatch Checks … yes ✔ Backend PHP unit and integration testing via PHPUnit. … yes ✔ EditorConfig setup … yes ✔ StyleCI config file … yes ✔ Run composer install? (recommended) … yes Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user. Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Updating dependencies Lock file operations: 150 installs, 0 updates, 0 removals

Error occurred, and could not complete: Command failed: yarn install /bin/sh: yarn: command not found

Error: Command failed: yarn install /bin/sh: yarn: command not found

at checkExecSyncError (child_process.js:760:11)
at execSync (child_process.js:833:15)
at YarnInstall.run (/usr/local/lib/node_modules/@flarum/cli/lib/steps/misc/yarn.js:12:38)
at StepManager.runStep (/usr/local/lib/node_modules/@flarum/cli/lib/boilersmith/step-manager.js:153:45)
at checkAndRun (/usr/local/lib/node_modules/@flarum/cli/lib/boilersmith/step-manager.js:73:35)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async StepManager.run (/usr/local/lib/node_modules/@flarum/cli/lib/boilersmith/step-manager.js:94:21)
at async Init.run (/usr/local/lib/node_modules/@flarum/cli/lib/base-command.js:57:21)
at async Init._run (/usr/local/lib/node_modules/@flarum/cli/node_modules/@oclif/core/lib/command.js:80:22)
at async Config.runCommand (/usr/local/lib/node_modules/@flarum/cli/node_modules/@oclif/core/lib/config/config.js:301:25)

Before the error, the following steps were completed:

askvortsov1 commented 6 months ago

You should install yarn on your machine: https://yarnpkg.com/getting-started/install

Alternatively, you can use npm instead of yarn