node.js – npm 3和Bower有什么区别?

前端之家收集整理的这篇文章主要介绍了node.js – npm 3和Bower有什么区别?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
随着npm 3带有扁平(-ish)依赖结构,我们是否会在未来使用Bower,或者在发布时仅使用npm 3?

npm is most commonly used for managing Node.js modules,but it works for the front-end too when combined with Browserify and/or $npm dedupe.

Bower is created solely for the front-end and is optimized with that
in mind. The biggest difference is that npm does nested dependency
tree (size heavy) while Bower requires a flat dependency tree (puts
the burden of dependency resolution on the user)

merge bower into npm

npm3

npm-and-front-end-packaging

解决方法

npm 3加上 browserifywebpack是现在的方法.在项目中使用包管理器会使您的工作流程变得更加困难.

今天安装npm 3:

npm install -g npm@latest
原文链接:https://www.f2er.com/nodejs/241033.html

猜你在找的Node.js相关文章