tailchat icon indicating copy to clipboard operation
tailchat copied to clipboard

编译文件的时候报错了

Open GH6324 opened this issue 11 months ago • 3 comments

按照文档的内容进行编译

报错相关的日志

root@xxx /www/wwwroot/tailchat-1.11.10 $ pnpm install
Scope: all 76 workspace projects
 WARN  Ignoring broken lockfile at /www/wwwroot/tailchat-1.11.10: Lockfile /www/wwwroot/tailchat-1.11.10/pnpm-lock.yaml not compatible with current pnpm
.../plugin-declaration-generator         |  WARN  deprecated [email protected]
packages/types                           |  WARN  deprecated [email protected]
server/packages/sdk                      |  WARN  deprecated [email protected]
apps/cli                                 |  WARN  deprecated [email protected]
 WARN  deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.
server                                   |  WARN  deprecated @types/[email protected]
server                                   |  WARN  deprecated @types/[email protected]
client/web                               |  WARN  deprecated @types/[email protected]
client/web                               |  WARN  deprecated [email protected]
client/web                               |  WARN  deprecated [email protected]
client/web                               |  WARN  deprecated [email protected]
/www/wwwroot/tailchat-1.11.10/client/web:
 ERR_PNPM_FETCH_404  GET https://registry.npmmirror.com/tailchat-shared: Not Found - 404

This error happened while installing a direct dependency of /www/wwwroot/tailchat-1.11.10/client/web

tailchat-shared is not in the npm registry, or you have no permission to fetch it.

No authorization header was set for the request.
Progress: resolved 365, reused 333, downloaded 29, added 0

我的编译环境

系统版本:Debian 12_x86_64 nodejs版本:v22.14.0 pnpm版本:10.4.1

Windwos下编译也报此错误

GH6324 avatar Feb 20 '25 08:02 GH6324

maybe you can try [email protected]

moonrailgun avatar Feb 28 '25 13:02 moonrailgun

Try downloading a completely new version of the code and then directly run pnpm install. I've also encountered this problem. I modified some files after opening the project with an IDE. After restoring it to its original state, the modification worked.

wangxiaolong100 avatar Mar 03 '25 10:03 wangxiaolong100

tailchat-shared 是内部组件,需要将版本号改成 workspace 同理还有别的组件有这样的报错,一样的解决办法


tailchat-shared is an internal component, and the version number needs to be changed to workspace Similarly, other components have such errors, and the same solution

Vinsea avatar Mar 20 '25 02:03 Vinsea