Skip to content

Instantly share code, notes, and snippets.

@sverweij
Last active May 14, 2024 19:05
Show Gist options
  • Save sverweij/5802e6234e91999790642993aa596b09 to your computer and use it in GitHub Desktop.
Save sverweij/5802e6234e91999790642993aa596b09 to your computer and use it in GitHub Desktop.
- Use yarn to avoid accidentally running code from un-installed packages
sh-3.2$ npx tsc --init

                                                                               
                This is not the tsc command you are looking for                
                                                                               

To get access to the TypeScript compiler, tsc, from the command line either:

- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from un-installed packages
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment