visit
`list-repos` does some cool stuff if you are working on so many open source projects with GitI can ramble more about the utility I created, but that’s not important for this post here.Important thing is that, to use this utility; you need to install it globally on your computer as the following command:
npm i -g list-repos
list-repos .. # from any project
list-repos # parent where all projects reside
npm i -g list-repos
So, how to use?npx
You need to provide the following things to
npx
:my-package
my-package
This means that, for
list-repos
, all you need to do is to fire following command:npx list-repos ..
Originally, npx started in May 2017; it was a npm package installable as other npm binaries from
And now it is part of npm and installed by default.So if your system says that
npx
is not found, you can npm i -g npm
npm
on current npm as npm i -g npx
If you are using the npm version which internally supports npx
1. moving to a version which doesn’t, thenIf you are using npm version which internally doesn’t support npm
1. moving to a version which supports-—reinstall-packages-from=<from-node-version>
; nvm install v6.9.2 --reinstall-packages-from=v4.4.5
alias lrs="npx list-repos"
And if any package is added as a dependency in your node project and you are using npx in your npm scripts, npx will use the package form local dependency space i.e. node_modules
This give a chance to use packages like
yarn
, create-react-app
or any similar binary always from the latest version.(Almost) No need to reinstall the latest version and then retry to use the binaries.So let me know how would you make use of npx and what do you think about this article through comments 💬 or on Twitter at and
If you find this article helpful, please share it with others 🗣; subscribe to the blog for new posts and see you the next time.