Testing npm package locally

  • Run the below command in your package directory (where the local version of the npm package is present)
npm link
  • Run the below command in your app directory where you want to test your package
npm link package-name

Uninstalling Package

sudo npm rm --global foo 

--

--

--

Building influencerbit.com, 📍Bengaluru

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What I learned from 2 years with JavaScript and React

Angular Material Stepper With Pagination

React overview: what is react and why it is vitally important for your business?

Shell Sort in JavaScript

Fast Build a Web App with Vue.Js

How to make a beautiful, tiny npm package and publish it

Algorithm — longestStretch

VueScan: How Sublimate And Enhance Your Scans.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aman Kumar

Aman Kumar

Building influencerbit.com, 📍Bengaluru

More from Medium

Owner Kit Delivery — The Story of Efficiency

Axure Plugin for Sketch, Adobe XD and FIgma

DIY Navigation in Notion in 5 quick steps.

Apple and Automation