create template installable with npx code example
Example: create react app not creating template
if react is installed globally, run this:
npm uninstall -g create-react-app
then run this:
npx create-react-app {directory name}
if react is installed globally, run this:
npm uninstall -g create-react-app
then run this:
npx create-react-app {directory name}