首页 > 其他 > 详细

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

时间:2017-07-20 17:15:19      阅读:340      评论:0      收藏:0      [点我收藏+]

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://www.cnblogs.com/Answer1215/p/7211968.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!