diff --git a/cheat-sheet/Packaging/npm.md b/cheat-sheet/Packaging/npm.md index 9f7c0b16e..9e027d71a 100644 --- a/cheat-sheet/Packaging/npm.md +++ b/cheat-sheet/Packaging/npm.md @@ -35,9 +35,6 @@ related: npm init # Create new package npm login # Login to npmjs.com registry - # Scoped login to alternative registry - npm login --scope=@NAMESPACE --auth-type=legacy --registry=https://npm.pkg.github.com - npm publish npm unpublish @@ -49,6 +46,17 @@ related: npm start # Start an app +## Alternative registries + + # Scoped login to alternative registry + npm login --scope=@NAMESPACE --auth-type=legacy --registry=https://npm.pkg.github.com + +Set publish target in `package.json` + + "publishConfig": { + "registry": "https://npm.pkg.github.com" + }, + ## Using npm modules for clients E.g. exposing jquery with Express: