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.