npm Packages
- 28 Aug 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
npm Packages
- Updated on 28 Aug 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Getting started
Log in with the Crowdbotics CLI:
cb login
Set up your npm config files:
echo "@pkg:registry=https://pkg.crowdbotics.com/npm" >> .npmrc
echo "//pkg.crowdbotics.com/:_authToken=Token $(npx node-jq -r ".token" ~/.crowdbotics/auth.json)" >> .npmrc
Publishing packages
Publishing packages with npm
is very straightforward.
Create a new package with:
npm init
Name your package
@pkg/<your-package-name-here>
and publish it with:npm publish
A full example is available at:
https://github.com/crowdbotics/pkg-npm-packaging-tutorial
Package visibility
In the current version of the system, all published packages are available to all users in your organization; only the package author or the organization owner can publish new versions.
Fine-grained access control settings will be available in a future release.
Was this article helpful?