博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Node] Run Any Version of a Node Tool with npx
阅读量:7265 次
发布时间:2019-06-29

本文共 505 字,大约阅读时间需要 1 分钟。

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.  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.tsnpx typescript --target es2017 index.ts // Use the latest version

 

转载地址:http://xgrdm.baihongyu.com/

你可能感兴趣的文章
SELinux初学者指南
查看>>
ECCV 2018 | 旷视科技包揽COCO+Mapillary四项世界第一,中国公司成最大赢家
查看>>
Shiro Ajax请求没有权限返回JSON,没有登录返回JSON
查看>>
classList属性详解
查看>>
MYSQL-锁机制
查看>>
寻找List之和的最近素数
查看>>
程序员必知必会的那些邪恶的脚本
查看>>
Go 程序的基本结构和要素
查看>>
深入理解Java中的反射机制
查看>>
Git命令速查
查看>>
Android--解包、添加文件、打包、签名
查看>>
阿里云服务器ECS操作系统的分类
查看>>
HTML5 manifest离线缓存
查看>>
iframe父子页面通讯解决方案
查看>>
hive外表和事务表
查看>>
人工智能最终将超越人类,但不是反人类
查看>>
bearcat-dao 一个基于 SQL mapping 的 node.js DAO 框架
查看>>
一加终于承认擅自收集用户隐私的行为,但声称从未提供给第三方
查看>>
ucfirst() 函数
查看>>
还在担心机器人?人工智能目前水平还不如初中生
查看>>