任何缩短 teamcity 中 npm 安装时间的建议
any suggestion to shorten the installation time of npm in teamcity
正在尝试使用 teamcity 构建和部署 ionic 程序。但是每次teamcity都需要安装所有的npm模块。
我尝试使用 powershell 备份 node_modules 文件夹,但 teamsity 不允许在 powershell 中使用 remove-item 或 move-item 并且我有 4-5 个代理在 teamcity 中构建项目,所以我认为在本地存储不是更好的方法。
任何人都有减少时间的最佳解决方案。
有时您无法避免 运行 npm install
但您可以显着加快速度。
一个可能的解决方案是使用 npm 缓存:
但这并不总是可以有效地使用。
另一种选择是使用 npm 代理:
或:
sinopia - a private/caching npm repository server. It allows you to have a local npm registry with zero configuration. You don't have to install and replicate an entire CouchDB database. Sinopia keeps its own small database and, if a package doesn't exist there, it asks npmjs.org for it keeping only those packages you use.
一些可能对您有所帮助的教程:
正在尝试使用 teamcity 构建和部署 ionic 程序。但是每次teamcity都需要安装所有的npm模块。
我尝试使用 powershell 备份 node_modules 文件夹,但 teamsity 不允许在 powershell 中使用 remove-item 或 move-item 并且我有 4-5 个代理在 teamcity 中构建项目,所以我认为在本地存储不是更好的方法。
任何人都有减少时间的最佳解决方案。
有时您无法避免 运行 npm install
但您可以显着加快速度。
一个可能的解决方案是使用 npm 缓存:
但这并不总是可以有效地使用。
另一种选择是使用 npm 代理:
或:
sinopia - a private/caching npm repository server. It allows you to have a local npm registry with zero configuration. You don't have to install and replicate an entire CouchDB database. Sinopia keeps its own small database and, if a package doesn't exist there, it asks npmjs.org for it keeping only those packages you use.
一些可能对您有所帮助的教程: