typings install dt~angular --global --save异常
发布时间:2020-12-17 09:36:10 所属栏目:安全 来源:网络整理
导读:一、在使用VS Code添加angularjs智能提示出现异常 命令: typings install dt~angular --global --save 异常如下: typings ERR! message Attempted to compile "angular" as a global module,but it looks like an external module. You'll need to remove
一、在使用VS Code添加angularjs智能提示出现异常 命令: typings install dt~angular --global --save异常如下: typings ERR! message Attempted to compile "angular" as a global module,but it looks like an external module. You'll need to remove the global option to continue. 但去掉--global可以安装成功 typings install dt~angular --save 还是会出异常没法使用。
解决方案: 对于dt~angular使用npm install @types/angular 命令安装
生成结果:
测试如下:
更多: NodeJs开发环境搭建之Visual Studio Code VS Code智能提示功能之Typings NodeJs的安装和环境变量配置 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读