简体   繁体   中英

Install via npm all dependencies in package.json from a project A to a project B?

我想知道是否有一种本地方式将 package.json 中列出的所有依赖项从项目 A 安装到项目 B,除了使用 Python 虚拟环境或其他更“重”的解决方案作为使用 Docker 映像的方式(但我认为这会矫枉过正)。

是的,在项目的终端中输入npm i ,它会查找 package.json 如果找到了它会下载其中的所有包,如果没有找到它会要求你创建

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM