pnpm的两个问题 #8275
Unanswered
xiaoyuebao
asked this question in
Q&A
pnpm的两个问题
#8275
Replies: 1 comment 5 replies
-
P.S. If I don't remember wrongly, from a specific version of pnpm, hard-link is replaced by copy-on-write, which also helps to reduce disk space and can speed up copying. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请问pnpm的两个坑怎么解决:
第一个问题:没有节省磁盘空间
我已经配置了依赖的存储位置,
但我在项目里pnpm install以后,发现依赖包还是很大,然后发现里面的链接并不是指向先前配置的依赖存储位置,而是指向项目目录里的node_modules\.pnpm里,一点也没有节省磁盘空间,
第二个问题:找不到依赖
运行pnpm dev的时候报需要安装
To install them, you can run: npm install --save swiper/dist/css/swiper.css
,然后发现并不是缺少swiper,而是指向问题,因为swiper/dist/css/swiper.css实际跑到了node_modules\.pnpm里,导致找不到依赖,babel-core也是同样的问题,
==请问这两个问题怎么解决==
Beta Was this translation helpful? Give feedback.
All reactions