Cannot find module ‘typescript‘
日期: 2021-04-19 分类: 个人收藏 476次阅读
原文:
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
标签:前端
精华推荐