简体   繁体   中英

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. 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?

Thanks

These modules are not in javascript but in c++ which must be compiled against your system. pre-build tests are here to ensure the package can be built on your system, basically it checks that binary/lib are present.

You can't remove it and I think the most time consuming task is compiling these c++ modules.

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