码迷,mamicode.com
首页 > 其他好文 > 详细

[Node] Run Any Version of a Node Tool with npx

时间:2017-07-20 17:22:03      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:http   with   evo   data-   using   hub   vol   .com   project   

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

 

[Node] Run Any Version of a Node Tool with npx

标签:http   with   evo   data-   using   hub   vol   .com   project   

原文地址:http://www.cnblogs.com/Answer1215/p/7211968.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!