Reputation:
I'm working on a application using node.js and I'm wondering whether I should add it to the npm registry so that it's easy to install. It's not a module that you would be able to use, which is what the majority of packages on npm are.
If npm isn't the right place to publish it, is there another place I can publish it so that users don't have to use the git clone; npm install
method to install it.
Upvotes: 1
Views: 584
Reputation: 3655
I do that all the time (publish to npmjs), but I put it under an organization.
Check out NPM org
You can make your code available in the path by setting the bin section of package.json
.
All the user now needs to do to use your application would be:
npm install -g @your-org/your-app
and given a proper setup of the bin
section above mentioned, you could allow the user to run your app (again, I'm not sure what type of application we are talking about). This works for any type.
If you do not wish to install it globally, the executable would be available in node_modules/.bin/your-app-name-as-in-bin-of-package-json
Please explain more what your application does so that we can help you better.
Upvotes: 0
Reputation: 3915
One way to publish your application is to create a website and store your releases on it. Fortunately github offers a way to create a website out of your github repository. For more information you can go to this link
Forcing users to download your application through npm
is not a good idea.
Upvotes: 1