gpt4 book ai didi

javascript - Node.js:如何创建付费 Node 模块?

转载 作者:太空宇宙 更新时间:2023-11-04 02:49:34 26 4
gpt4 key购买 nike

如何销售 Node 模块?

我需要将我的 CMS 插件发布到 NPM 并允许用户安装它们,这样其中一些插件就可以付费。

我该怎么做?

最佳答案

与此处的一些答案相反,npm 上的所有内容并非都是开源的或对任何人公开可用 - npm 支持组织、作用域包、私有(private)模块和访问受限的私有(private)作用域包。即使没有,您仍然可以托管一个私有(private) npm 注册表(见下文)或在 GitHub 或 GitLab 或任何其他 git 服务器上托管一个模块,您还可以在其中拥有向客户授予受限访问权限的私有(private)存储库。

您可以创建私有(private) npm 模块:

您可以向您的客户添加对此类模块的访问权限:

If you want to give access to someone, they need to be subscribed to private modules as well. Once they are, you can give them read or read-write access.

You can control access to the package on the access page. To get to the page, click on the Collaborators link or the plus button.

或者您可以托管自己的私有(private) npm 注册表:

您可以将模块托管在 GitHub 或 GitLab 或任何其他 git 服务器上,而不是 npm。

关于javascript - Node.js:如何创建付费 Node 模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42931691/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com