typings install dt~angular --global --save异常

一、在使用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的安装和环境变量配置


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部