@pmhai90/oku-booking-element-calculator
v0.1.12
Published
Shared booking calculator functions for Vue and Node microservices
Downloads
132
Readme
📦 Publishing to npm
This package is published to npmjs.org under the scope @pmhai90.
Follow these steps to publish new versions:
🔑 1. Generate an npm token
- Go to your npm account:
👉 https://www.npmjs.com/settings/pmhai90/tokens - Click “Generate New Token” → “Automation”.
- Copy the token (it will start with
npm_).
⚙️ 2. Set up authentication
Add this line to your shell configuration (~/.zshrc, ~/.bashrc, etc.):
export NPM_TOKEN="npm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"⚙️ 3. Reload your shell
source ~/.zshrc🧩 4. Create or update .npmrc
In the project root, add (or update) your .npmrc file:
registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=${NPM_TOKEN}🚀 5. Publish your package
Run the following command:
npm publish --access public
https://www.npmjs.com/package/@pmhai90/oku-booking-element-calculator✅ 6. Verify your setup
To confirm everything works, run:
npm whoami
npm config get registryExpected output:
pmhai90
https://registry.npmjs.org/