📒
wiki
  • Introduction
  • Coding
    • Git
    • NPM
    • Yarn
    • VIM
    • tmux
    • Terminal
    • HTML
    • Node
    • JavaScript
      • Types
    • TypeScript
    • React
    • Jest
    • FLow
    • Functional programming
    • Data Structures
    • Coding Exercises
    • Design Systems
    • VSCode
  • Learn
    • Languages
  • Health
  • Bikes
  • Ideas
  • Journals/Wiki
  • Looking back
    • 2019
      • September
      • October
      • November
      • December
Powered by GitBook
On this page
  • How to test local package
  • For Example
  • NPM package
  • Increase patch version
  • Publish
  • Global installation
  • List all the globally installed packages
  • Uninstall globally installed package

Was this helpful?

  1. Coding

NPM

How to test local package

For Example

cd ~/projects/node-redis

npm link

cd ~/projects/node-bloggy

npm link redis # links to your local redis

To reinstall from your package.json

npm unlink redis
npm install

sudo npm rm --global foo # This will uninstall the package.

To check whether a package is installed, the npm ls command can be used

npm ls --global foo

NPM package

Increase patch version

npm version patch

Publish

npm publish

Global installation

List all the globally installed packages

npm list -g --depth 0

Uninstall globally installed package

npm -g uninstall <module_name>
PreviousGitNextYarn

Last updated 1 year ago

Was this helpful?