mx-space / kami

🍰 Kami is mx-space's web frontend theme. Colorful, flat, cute and comfortable.
https://kami.innei.ren
GNU General Public License v3.0
317 stars 54 forks source link

pnpm i 安装依赖容易漏掉 peerDependencies #1570

Closed oozry12 closed 1 year ago

oozry12 commented 1 year ago

Describe the bug

pnpm i 安装依赖,漏掉 peerDependencies 导致前端部署不成功。表现为有数据,但全部空白,完全没渲染出来页面。

Reproduction

pnpm i

System Info

System:
    OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (2) x64 AMD EPYC 7551 32-Core Processor
    Memory: 504.29 MB / 971.32 MB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 18.14.0 - /usr/bin/node
    npm: 9.3.1 - /usr/bin/npm

Used Package Manager

pnpm

Validations

oozry12 commented 1 year ago

可以加一个,再安装依赖 pnpm config set auto-install-peers true pnpm i

Innei commented 1 year ago

kami 没有涉及 peerDependencies

oozry12 commented 1 year ago

原来忘记强制https 现在前端成功了

oozry12 commented 1 year ago

kami 没有涉及 peerDependencies

有的。 部署文档 https://mx-space.js.org/deploy/index.html#%E9%83%A8%E7%BD%B2-kami 构建# 这里选用 pnpm 作为包管理器。

安装必需的模块 pnpm i 构建 pnpm build