简体   繁体   English

安装我的npm模块时如何逃避预构建测试?

[英]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.

相关问题 安装npm 6.4.1版时如何解决错误 - How can I fix errors when installing npm version 6.4.1 在本地安装时,如何让我的NPM包显示“npm WARN prefer global” - How do I make my NPM package show “npm WARN prefer global” when installing locally 安装一些 npm 模块后全局显示一长串错误时我列出它们? 如何解决? - After installing some npm module globally shows a long list of errors when I list them! How to fix it? 使用npm在错误的位置安装模块会造成多大的损失? - How much damage can I do by installing a module in the wrong place with npm? 如何添加 UMD 以便我可以在浏览器中使用我的模块并将其用作 NPM 模块? - How can I add UMD so I can use my module in the browser and as an NPM module? 预先构建的NPM软件包:如何使用户摆脱依赖关系? - Pre-built NPM package: How can I spare users my dependencies? 安装 Npm 时找不到模块“semver” - Cannot find module 'semver' When installing Npm 安装 npm 模块时权限被拒绝 - Permission denied when installing npm module 尽管安装了npm模块却找不到 - can't find npm module despite installing it 为什么我不能修改module.exports? 为什么我的浏览器在 `npm run build` 没有问题后会抱怨? - Why can't I modify module.exports? Why does my browser complain after no problems from `npm run build`?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM