sk-test-node-deploy
v1.0.13
Published
CLI tool to quickly scaffold a Node.js boilerplate project
Maintainers
Readme
NPM Package Workflow Guide
This repository contains commonly used commands for creating, testing, and publishing an npm package.
Initialize NPM Project
npm initNPM Authentication
Login to NPM
npm loginLogout from NPM
npm logoutLocal Package Linking (For Testing)
Use this to test your npm package locally before publishing.
Link Package Locally
npm linkUnlink Package Locally
npm unlink -g <package-name>Publishing NPM Package
Publish Without 2FA
npm publish --access publicStandard Publish
npm publishUpdate NPM Package
Increase patch version and publish:
npm version patch
npm publish --access publicOther version options:
npm version minornpm version major
Package Information
Check if Package Already Exists
npm view <package-name>Check Package Owner
npm owner ls <package-name>Bypass 2FA Using NPM Token
Configure npm authentication token (useful for CI/CD):
npm config set //registry.npmjs.org/:_authToken=<YOUR_NPM_TOKEN>⚠️ Important: Never commit your npm token to source control.
Notes
- Always update the version before publishing
- Test locally using
npm link - Ensure package name is unique
- Enable 2FA for better security
