npm install ./local-package

Category: Node.js & npm/yarn

npm install ./local-package

Install a package from a local directory on your machine

Installs a package from a folder on your own machine. Common when developing a library alongside the app that uses it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.