博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
node启动ts项目:‘ts-node‘ 不是内部或外部命令,也不是可运行的程序或批处理文件。
阅读量:4043 次
发布时间:2019-05-24

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

解决办法:

1.ts-node,typescript也先安装成全局的
npm install -g ts-node
npm install -g typescript

2.需要安装个全局的cross-env才行(要加上-g参数)

npm install -g cross-env –save-dev
然后在cmd中执行下面命令可以成功:
cross-env NODE_ENV=development nodemon --watch 'app/**/*' -e ts --exec 'ts-node' app.ts

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

你可能感兴趣的文章
MPMoviePlayerViewController和MPMoviePlayerController的使用
查看>>
CocoaPods实践之制作篇
查看>>
[Mac]Mac 操作系统 常见技巧
查看>>
苹果Swift编程语言入门教程【中文版】
查看>>
捕鱼忍者(ninja fishing)之游戏指南+游戏攻略+游戏体验
查看>>
iphone开发基础之objective-c学习
查看>>
iphone开发之SDK研究(待续)
查看>>
计算机网络复习要点
查看>>
Variable property attributes or Modifiers in iOS
查看>>
NSNotificationCenter 用法总结
查看>>
C primer plus 基础总结(一)
查看>>
剑指offer算法题分析与整理(一)
查看>>
剑指offer算法题分析与整理(三)
查看>>
Ubuntu 13.10使用fcitx输入法
查看>>
pidgin-lwqq 安装
查看>>
mint/ubuntu安装搜狗输入法
查看>>
C++动态申请数组和参数传递问题
查看>>
opencv学习——在MFC中读取和显示图像
查看>>
retext出现Could not parse file contents, check if you have the necessary module installed解决方案
查看>>
Matlab与CUDA C的混合编程配置出现的问题及解决方案
查看>>