`npm install` without Changing Directories
Today I learned, via this pull request to Tilex, about the --prefix
flag to npm install
. This could transform an installation script from this:
$ cd assets
$ npm install
$ cd ..
To this:
$ npm install --prefix assets
Hooray for less typing!
h/t Taylor Mock
Tweet