Young87

当前位置:首页 >个人收藏

Cannot find module ‘typescript‘

原文:
https://github.com/palantir/tslint/issues/3829
解决办法:
it looks like locally installed modules don’t look for modules from the global module directory.

I think that you can install both tslint/typescript locally or globally, but not mixed.
翻译:
看起来本地安装的模块不会从全局模块目录中查找模块。
我认为可以在本地或全局安装tslint/typescript,但不能混合安装。

鉴于我之前一直是执行:npm install -g typescript
于是这次不全局安装了,执行npm install typescript
success!不报Cannot find module 'typescript’错儿了。

除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog

上一篇: 7大Python就业岗位,你知道几种?自己选对了吗?

下一篇: 3 万字 + 100 张图带你彻底搞懂 TCP 面试题(强烈建议收藏)

精华推荐