cocos / cocos/cocos-cli

macos 下 安装 构建都成功, 但是运行时 提示 "permission denied"

Open
#362 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
430
Forks
154
Avg merge
2d 4h
Merged PRs (30d)
61

Description

macos 26.2
重新build 重新执行 npm link 也不行

提示: zsh: permission denied: cocos

执行 npm list -g 能找到 cocos-cli
执行 which cocos 时 提示 cocos not found

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the macOS 26.2 flow with a rebuild, npm link, npm list -g, and which cocos, then inspect how the cocos-cli executable is installed and exposed to zsh. Done means the global package is discoverable and invoking cocos no longer reports permission denied.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.