### Check List - [x] I have already read [Docs page](https://hexo.io/docs/) & [Troubleshooting page](https://hexo.io/docs/troubleshooting). - [x] 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. - [x] I am using the [latest](https://github.com/hexojs/hexo/releases) version of Hexo. (run `hexo version` to check) - [x] My Node.js is matched [the required version](https://hexo.io/docs/#Required-Node-js-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 ```text v24.13.0 11.6.2 ``` ### Your Hexo and Plugin version ```text 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` ```json ``` ### Your site's `_config.yml` (Optional) ```yaml ``` ### Others _No response_
Activity
stevenjoezhang commentedon Mar 28, 2026
npm install -g hexo-cliis unnecessary. Trynpx hexo g