Categories
JavaScript Answers

How to get the npm global path prefix with Node?

Spread the love

To get the npm global path prefix with Node, we run npm config.

To do this, we run

npm config get prefix

to return the global package path prefix.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *