为什么NPM节点模块包含bower.json文件?(Why do NPM node modules contain a bower.json file?)

编程入门 行业动态 更新时间:2024-10-24 01:49:03
为什么NPM节点模块包含bower.json文件?(Why do NPM node modules contain a bower.json file?)

我的任务是在可能的情况下拆除凉亭,而是使用NPM来安装模块。 我已经完成了对代码库的搜索,并且唯一的bower.json文件位于NPM节点模块中。 我认为NPM是凉亭的替代品,这是不正确的?

我期待在项目根目录中找到bower.json文件。 我没有,它应该像NPM一样被使用吗?

I've been tasked with removing bower where possible and instead using NPM to install modules. I've done a search of the codebase and the only bower.json files are within NPM node modules. I thought that NPM was an alternative to bower, is this incorrect?

I was expecting to find a bower.json file in the project root. As I haven't does it should like NPM is already being used instead?

最满意答案

您可以使用NPM作为凉亭的替代品,是的。

每个模块都有一个bower.json,因为该模块也想支持bower和npm。 模块管理员可以编写版本号等内容,忽略某些文件下载等。您无需担心这些文件。

你的包裹没有bower.json - 完美。 你不支持凉亭。

You can use NPM as an alternative to bower, yes.

Every module has a bower.json because the module wants to support bower and npm as well. Module managers can write stuff like version number, ignore certain files to download, etc. You don't need to worry about these files.

Your package doesn't have a bower.json - perfect. You don't support bower.

更多推荐

本文发布于:2023-08-07 21:04:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465541.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:节点   模块   文件   bower   NPM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!