Skip to content

Commit

Permalink
Show how to run latest version of create-X cli package
Browse files Browse the repository at this point in the history
This is related caching behavior of "npm init", more discussion see npm/cli#2395
  • Loading branch information
beenotung committed Sep 19, 2022
1 parent 4e31dc4 commit e2ab650
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -14,10 +14,18 @@ It downloads the template project using degit. Compared with pulling from git di

## Usage example
```bash
# reuse cached version if available
> npm init ts-liveview my-app
# or always run the latest version of cli package
> npx create-ts-liveview my-app
```
Then follows the "get started" message from above command.

**Remark**:
Sometimes "npm init X" get stuck on old version of 'create-X' package, you may run "npx create-X" to run the latest version of cli package.

This issue is discussed on https://github.com/npm/cli/issues/2395

## License
This is free and open-source software (FOSS) with
[BSD-2-Clause License](./LICENSE)

0 comments on commit e2ab650

Please sign in to comment.