Bạn hiểu gì về symlink và node_modules structure của pnpm?
Bạn hiểu gì về symlink và node_modules structure của pnpm?
Cấu trúc node_modules của pnpm:
node_modules/
├─ express → symlink → .pnpm/express@4.19.2/node_modules/express
└─ .pnpm/
├─ express@4.19.2/node_modules/
│ ├─ express/ (hard link tới store)
│ └─ accepts → symlink → ../../accepts@1.3.8/node_modules/accepts
└─ accepts@1.3.8/node_modules/accepts
node_modules gốc chỉ có dependency trực tiếp (symlink).node_modules/.pnpm/<name>@<version>/node_modules/<name>, file là hard link tới store.Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.