[英]How can i escape pre build tests when installing my npm module?
When i install my npm module globally (npm install gtb -g) on any pc it takes too slow to install, especially on windows. 当我在任何PC上全局安装我的npm模块 (npm install gtb -g)时,安装速度太慢,尤其是在Windows上。 When i install any other module it installs way faster.
当我安装其他模块时,安装速度会更快。 The difference i see between my module and other modules is that mine executes these tests and builds for almost every dependency.
我看到的模块与其他模块之间的区别在于,我的模块执行这些测试并针对几乎每个依赖项进行构建 。 Can they be skipped or are they inevitable to run?
可以跳过它们还是不可避免地运行它们? Should i set something in package.json maybe?
我应该在package.json中设置一些内容吗?
Thanks 谢谢
These modules are not in javascript but in c++ which must be compiled against your system. 这些模块不在javascript中,而是在c ++中,必须针对您的系统进行编译。
pre-build
tests are here to ensure the package can be built on your system, basically it checks that binary/lib are present. 此处进行
pre-build
测试以确保可以在您的系统上构建该软件包,基本上它会检查二进制文件/ lib是否存在。
You can't remove it and I think the most time consuming task is compiling these c++ modules. 您无法删除它,我认为最耗时的任务是编译这些c ++模块。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.