Skip to content

Problem in .github/workflows/pages.yml #5736

@SPCinZJUSTU

Description

@SPCinZJUSTU

Check List

  • I have already read Docs page & Troubleshooting page.
  • I have already searched existing issues and they are not help to me.
  • I examined error or warning messages and it's difficult to solve.
  • I am using the latest version of Hexo. (run hexo version to check)
  • My Node.js is matched the required version.

Expected behavior

the Github Action blocks the deployment process

Actual behavior

error occurs in the Github Action
log as:

Run npm run build

> hexo-site@0.0.0 build
> hexo generate

sh: 1: hexo: Permission denied
Error: Process completed with exit code 127.

How to reproduce?

insert "npm install -g hexo-cli" in pages.yml file
in front of npm install

  - name: Install Dependencies
    run: npm install -g hexo-cli
         npm install
  - name: Build
    run: npm run build
  - name: Upload Pages artifact

Is the problem still there under Safe mode?

its hard to say its something new

Your Node.js & npm version

v24.13.0
11.6.2

Your Hexo and Plugin version

hexo-site@0.0.0 C:\Users\Zombies\SPCinZJUSTU.github.io
├── hexo-generator-archive@2.0.0
├── hexo-generator-category@2.0.0
├── hexo-generator-index@3.0.0
├── hexo-generator-tag@2.0.0
├── hexo-renderer-ejs@2.0.0
├── hexo-renderer-marked@6.3.0
├── hexo-renderer-stylus@3.0.1
├── hexo-server@3.0.0
├── hexo-theme-landscape@1.1.0
└── hexo@7.3.0

Your package.json

Your site's _config.yml (Optional)

Others

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions