typescript – 错误:在尝试扩展tslint-microsoft-contrib时找不
发布时间:2020-12-14 05:45:23 所属栏目:Windows 来源:网络整理
导读:这是我们的环境 node_modules.bintslint --version4.0.1 npm install --save-dev tslint-microsoft-contrib`-- tslint-microsoft-contrib@2.0.13 这是我们的tslint.json配置. { "extends": [ "./node_modules/tslint-microsoft-contrib/tslint.json" ]}
这是我们的环境
> node_modules.bintslint --version 4.0.1 > npm install --save-dev tslint-microsoft-contrib `-- tslint-microsoft-contrib@2.0.13 这是我们的tslint.json配置. { "extends": [ "./node_modules/tslint-microsoft-contrib/tslint.json" ] } 当我们使用该配置运行本地tslint时会发生这种情况. > node_modules.bintslint --config .tslint.json --project .tsconfig.json module.js:471 throw err; ^ Error: Cannot find module 'tslint/lib/lint' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:myAppnode_modulestslint-microsoft-contribinsecureRandomRule.js:7:12) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) 我们如何在扩展tslint-microsoft-contrib的配置上运行tslint? 解决方法
您需要降级到tslint 3.xx,tslint-microsoft-contrib还不支持tslint 4,PR
#314应该修复,PR看起来已经完成,但是测试需要升级grunt-tslint以支持tslint 4 .同时,您可以继续使用tslint @ 3
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows-server-2008-r2 – vSphere中的Windows Server gue
- Windows Phone 8仿真器 – 部署通用应用程序导致“包无法注
- 批处理文件 – cmd / DOS批处理脚本中变量周围的方括号表示
- windows安装android开发平台
- / v / qn参数对windows静默安装程序有什么作用?
- windows – (linebreak-style)预期的换行符为’LF’但找到’
- windows下python管理右键菜单
- 在Office365中访问Exchange CustomAttribute1
- windows – 如何通过windbg中的句柄获取文件路径?
- windows-server-2008 – Server 2008漫游配置文件权限