I would like to npm ...always run in the context of a subfolder of my project: "./assets".
When I run this command from the root of the project, it behaves as expected:
$ npm --prefix ./assets install
However, it does not read this from .npmrcin the root folder.
$ echo "prefix=./assets" > .npmrc
$ npm i
How can I set the prefix for a specific project for npm commands?
steel source
share