Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

关于npm依赖包

刚学了npm有一个小问题,自行搜索后没找到想要的答案,希望有朋友可以解答:
用npm下载了一个包,如果这个包依赖着其他的包,我要怎么下载这个包的依赖包,怎么单独下载dependencies下的依赖包和devDependencies下的依赖包


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

一般如果一个包依赖其他的包,那么这个包的package.json里面会写他依赖的包,你在install的时候会自动下。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...