本文共 256 字,大约阅读时间需要 1 分钟。
解决办法:
1.ts-node,typescript也先安装成全局的 npm install -g ts-node npm install -g typescript2.需要安装个全局的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/