Third-party package usage has become a common practice in contemporary software development. Developers often face different challenges, including choosing the right libraries, installing errors, discrepancies, setting up the environment, and building failures during software development. The risks of maintaining a third-party package are well known, but it is unclear how information from Stack Overflow (SO) can be useful. This paper performed an empirical study to explore npm co-usage in SO. From over 30,000 SO posts, we extracted 2,100 SO posts related to npm and matched them to 217,934 npm library packages. We find that, popular and highly used libraries are not discussed as often in SO. However, we can see that the accepted answers may prove useful, as we believe that the usage examples and executable commands could be reused for tool support.
翻译:第三方软件包的使用已成为当代软件开发中的一种常见做法。 开发者往往面临不同的挑战,包括选择正确的图书馆、安装错误、差异、设置环境以及软件开发过程中的建筑故障。 维护第三方软件包的风险众所周知,但不清楚从Stack overflow (SO) 获得的信息如何有用。 本文进行了一项经验性研究,以探索SO中的npm 共使用。 我们从30,000多个SO职位中提取了2,100个与npm有关的SO职位,并将其与217,934 npm 图书馆的217,934 npm相匹配。 我们发现,在SO中并不经常讨论常用和高用途的图书馆。 然而,我们可以看到,公认的答案可能证明是有用的,因为我们认为,使用实例和可执行的命令可以被重新用于工具支持。