只有 pnpm(没有 dsh 也行):进正在用的那个 profile,不要在仓库根执行。

cd "$DSH_HOME/profiles/web"    # 桌面改 profiles/desktop
pnpm add https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master

pnpm 11/12 默认拦安装脚本(ERR_PNPM_IGNORED_BUILDS),要带上允许构建:

pnpm approve-builds dsh-purge@https://codeload.github.com/HunYiSage/dsh-purge/tar.gz/refs/heads/master

1、下载安装
nodejs官网下载地址 https://nodejs.org/zh-cn/download
压缩文件解压到C:\node
2、设置环境变量

setx Path "%PATH%;C:\node"

3、设置 npm 中国镜像

npm config set registry https://registry.npmmirror.com

3、修改npm缓存路径

npm config set cache "C:\npm\npm-cache"

4、修改npm全局路径

npm config set prefix "C:\npm"
setx Path "%PATH%;C:\npm"

5、更新 npm、清理缓存

npm install -g npm
npm update
npm update -g
npm cache clean --force

6、npm命令

npm config list
npm config get cache
npm config get prefix

7、安装pnpm

npm config set allow-scripts=pnpm --location=user
npm install -g pnpm

8、修改pnpm存储路径
store: 核心存储仓库,所有下载的包内容都存放在这里
global: 全局安装的包位置
bin: 可执行命令文件
state: pnpm运行状态文件
cache: 下载缓存,加速后续安装

pnpm config set store-dir "C:\pnpm\store"
pnpm config set global-dir "C:\pnpm\global"  
pnpm config set global-bin-dir "C:\pnpm\bin"
pnpm config set state-dir "C:\pnpm\state"
pnpm config set cache-dir "C:\pnpm\cache"

9、设置环境变量

setx Path "%PATH%;C:\pnpm\bin"

10、pnpm命令

pnpm config list

npm config set allow-scripts=frida --location=user
npm install --global rea-agents

services:
  monitor:
    image: stqfdyr/monitor:latest 
    container_name: monitor
    environment:
      - TZ=Asia/Shanghai
    ports:
      - "127.0.0.1:28080:28080"
    volumes:
      - ./data:/data
    restart: always