Node配置全局和缓存路径

# 设置全局模块的安装路径到  "node_global" 文件夹 
npm config  set  prefix "E:\other\fnm\catch\node_global"

# 设置缓存到"node\_cache"文件夹 
npm config set cache "E:\other\fnm\catch\node_cache"

pnpm 配置全局和缓存路径

pnpm config set global-bin-dir "E:\other\fnm\catch\.pnpm\cache"
pnpm config set cache-dir "E:\other\fnm\catch\.pnpm\cache"
pnpm config set state-dir "E:\other\fnm\catch\.pnpm\state"
pnpm config set global-dir "E:\other\fnm\catch\.pnpm\global"
pnpm config set store-dir "E:\other\fnm\catch\.pnpm\cache"