DSH安装插件失败

hebaodan 2026-10-25 10:46 1


有佬知道是怎么回事吗?

最新回复 (4)
  • Mews 10-25 11:07
    1楼

    佬,这个窗口还在吗?能不能把终端显示完整内容发出来看看

    这个操作码是操作不允许,原因有好几种

  • hebaodan 楼主 10-25 11:18
    2楼

    刚刚那个是网络问题,但是我现在又遇到新的一个


    C:\Users\轩少>dsh plugin --profile web add github:EricXu20266/dsh-proxy
    ✓ Lockfile passes supply-chain policies (verified 11m ago)
    [ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED] Failed to prepare git-hosted package fetched from "https://codeload.github.com/EricXu20266/dsh-proxy/tar.gz/d0e7611af5e463f6948c500d2dab6adc5792c174": The git-hosted package "[email protected]" needs to execute build scripts but is not in the "allowBuilds" allowlist.

    This error happened while installing a direct dependency of C:\Users\轩少\.dsh\profiles\web

    Add the package to "allowBuilds" in your project's pnpm-workspace.yaml to allow it to run scripts. For example:
    allowBuilds:
    dsh-proxy@https://codeload.github.com/EricXu20266/dsh-proxy/tar.gz/d0e7611af5e463f6948c500d2dab6adc5792c174: true
    Progress: resolved 2, reused 1, downloaded 0, added 0
    dsh: plugin command failed; diagnostics: C:\Users\轩少\.dsh\profiles\web\.plugin-manager\logs\operation-wcLbqK\pnpm.log
    dsh: git-hosted plugins build on install via their prepare script, which pnpm blocks until allowed — add the exact key pnpm printed above under allowBuilds in C:\Users\轩少\.dsh\profiles\web\pnpm-workspace.yaml, then re-run
  • hebaodan 楼主 10-25 11:19
    3楼

    还有一个佬 你看下

  • Mews 10-25 11:26
    4楼

    佬,私你了

    这个板不让说白话,我现在不方便打指令就先不再这里发了

* 帖子来源Linux.do
返回