标签: cannot

1 篇文章

Cannot find module ‘ts-node/register’
from--https://www.e-learn.cn/topic/3406167 由 半世苍凉 提交于 2020-02-20 06:22:29 问题 I want to use mocha to test my TypeScript/Angular2 project. I tried to use ts-node as described here: npm install -g ts-node but when running mocha --require ts-node/register -t 10000 ./*/.unit.ts I get an error Cannot find module 'ts-node/register' What am I missing here? 回答1: Since the answer th…