若不存在,可自行新建文件夹

配置NODE_PATH变量:

配置Path变量:

npm config set prefix "D:\Configure\nodejs\node_global" npm config set cache "D:\Configure\nodejs\node_cache" npm install pnpm -g 
pnpm下载成功:

## 方式一 pnpm install xxx ## 方式二 pnpm install xxx --registry= 镜像库(如淘宝镜像库) 如下载: html-docx-js-typescript
pnpm install html-docx-js-typescript --registry=https://registry.npmmirror.com 
其他小知识:
淘宝镜像源地址由 https://registry.npm.taobao.org 已替换为 https://registry.npmmirror.com