Categories
JavaScript Answers

How to specify the path of package.jso to npm with JavaScript?

Spread the love

To specify the path of package.jso to npm with JavaScript, we set the --prefix option.

For instance, we run

npm --prefix /path/to/project run build

to set the --prefix option to the path of package.json we want npm to read from when running the build command.

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 *