If you use npm 5.1 or earlier, you can't use npx
.
Instead, install @udilia/create-react-library
globally:
npm install -g @udilia/create-react-library
Now you can run:
@udilia/create-react-library my-library
However we recommend to use npx
, so you can always setup new project based on latest @udilia/create-react-library
package.