Fixing Typings / bash error: “event not found”

If you try to use typings from within bash, you can get errors like this:

typings install dt!react --save
-bash: !react": event not found

This is a puzzling error, since this is basically what the docs suggest you do – the cause is that “!” is a symbol bash expects.

The correct fix is to quote it with apostrophes (” does not work).

typings install 'dt!react' --save
react
└── (No dependencies)

Leave a Reply

Your email address will not be published. Required fields are marked *