Using npm to install or update required packages just like bundler for rubygems

后端 未结 6 1003
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 03:57

I love Bundler, it\'s great at dependency management. I love npm, installing node packages is easy! I have a nodejs app and would love to be able to specify my apps de

6条回答
  •  醉酒成梦
    2021-01-30 04:25

    Publish your app with npm as well, and list its dependencies in your package.json file.

    When someone uses npm to install your package, npm will take care of resolving its dependencies.

    Packages spec: http://wiki.commonjs.org/wiki/Packages/1.0

提交回复
热议问题