Sometimes, we want to update TypeScript to latest version with npm.
In this article, we’ll look at how to update TypeScript to latest version with npm.
How to update TypeScript to latest version with npm?
To update TypeScript to latest version with npm, we install the typescript
package with the latest
version.
To do this, we run
npm install -g typescript@latest
We can also run
npm update
to update all packages including typescript
.
Conclusion
To update TypeScript to latest version with npm, we install the typescript
package with the latest
version.