npm test is an alias for npm run test. npm run adds ./node_modules/.bin to the path so you don't have to globally install commands. This is especially helpful for those of us who change node versions many times a day and would have to globally install in each of those versions.
npm test
is an alias fornpm run test
.npm run
adds./node_modules/.bin
to the path so you don't have to globally install commands. This is especially helpful for those of us who change node versions many times a day and would have to globally install in each of those versions.