nerve init 尝试安装未发布的 @uncaged/nerve-core,显示 404 错误 #28

Closed
opened 2026-04-22 13:42:30 +00:00 by xingyue · 0 comments
Owner

What

nerve init 执行 pnpm install 时报错:

ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/@uncaged%2Fnerve-core: Not Found - 404

Why

@uncaged/nerve-core 还未发布到 npm,但 init 生成的 workspace package.json 将其列为依赖。

Expected

两种修法:

  1. 不在用户 workspace 的 package.json 中引入 nerve-core(sense 的 compute 函数是纯 JS,不需要 import core)
  2. 或者先发布 nerve-core 到 npm / 使用私有 registry

Reproduce

nerve init
# → "ERR_PNPM_FETCH_404 ... @uncaged/nerve-core: Not Found - 404"
## What `nerve init` 执行 `pnpm install` 时报错: ``` ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/@uncaged%2Fnerve-core: Not Found - 404 ``` ## Why `@uncaged/nerve-core` 还未发布到 npm,但 init 生成的 workspace `package.json` 将其列为依赖。 ## Expected 两种修法: 1. 不在用户 workspace 的 package.json 中引入 nerve-core(sense 的 compute 函数是纯 JS,不需要 import core) 2. 或者先发布 nerve-core 到 npm / 使用私有 registry ## Reproduce ```bash nerve init # → "ERR_PNPM_FETCH_404 ... @uncaged/nerve-core: Not Found - 404" ```
This repo is archived. You cannot comment on issues.
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/nerve#28