[Node] Run Any Version of a Node Tool with npx
2024-08-31 16:04:58
As node projects evolve, new features are added all the time. This results in different errors or results as you're migrating from one version to another. npx
allows you to try out any version you want by simply adding the version number to the project you're using. This lesson covers using the TypeScript compiler through a different versions as async function support was added.
Install:
npm install -g npx
Usage:
npx typescript@1.6 index.ts
npx typescript --target es2017 index.ts // Use the latest version
最新文章
- 好用的內存鏡像工具Belkasoft RAM Capture
- 为什么需要DTO(数据传输对象)
- iOS中几种定时器
- UIActivityViewController 自定义选项
- STL——迭代器的概念
- winform下调用webservice,传参List<;string>;
- Spring-----1、Spring简介和Spring3.0的变化
- git 使用过程(三、文件的添加 修改)
- VS解决方案创建
- SQLSERVER 运维日记-数据库状态
- eclipse和myeclipse设置默认编码格式为UTF-8
- 仿微信的IM聊天时间显示格式(含iOS/Android/Web实现)[图文+源码]
- android项目导入eclipse变成java项目——修改.project文件——亲测有效
- System.Collections里的一些接口
- BZOJ1208 [HNOI2004]宠物收养所 splay
- DEVOPS落地实践分享
- Spring Boot 历史
- Array.prototype.slice.call(arguments)探究
- flask源码解析之session
- Radon变换——MATLAB