ng cli 新命令:使用父目录中的 node_modules

ng cli new command : use node_modules from parent directory

有没有办法在使用 ng new 命令时跳过重新下载 node_modules 并使用父目录中的 node_modules ?这将在较慢的 Internet 连接下加快新项目模板的生成。

是的,有一个选项可以使用 ng new myProject --skip-install 跳过安装 npm 包。