Angular-cli新建angularjs2项目错误信息



我已经从webpack中安装了最新的angular cli。创建样例项目并运行它。在启动过程中给出错误消息,但应用程序工作。

我想清除这个启动错误信息。

像这样安装angular cli。

npm uninstall -g angular-cli 
npm cache clean
npm install -g angular-cli@webpack

错误消息。

WARNING in (webpack)/buildin/module.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* C:sharedang2bootnode_moduleswebpackbuildinmodule.js
    Used by 2 module(s), i. e.
    C:sharedang2bootnode_modulespunycodepunycode.js
* c:sharedang2bootnode_moduleswebpackbuildinmodule.js
    Used by 1 module(s), i. e.
    c:sharedang2bootnode_modulesrxjsutilroot.js
ERROR in [default]
Cannot find global type 'Array'.
ERROR in [default]
Cannot find global type 'Boolean'.
ERROR in [default]
Cannot find global type 'Function'.
ERROR in [default]
Cannot find global type 'IArguments'.
ERROR in [default]
Cannot find global type 'Number'.
ERROR in [default]
Cannot find global type 'Object'.
ERROR in [default]
Cannot find global type 'RegExp'.
ERROR in [default]
Cannot find global type 'String'.
ERROR in [default] C:sharedang2bootnode_modules@angularcommonsrcdirectivesng_class.d.ts:81:33
Cannot find name 'Set'.
ERROR in [default] C:sharedang2bootnode_modules@angularcommonsrcdirectivesng_if.d.ts:37:76
Cannot find name 'Object'.
ERROR in [default] C:sharedang2bootnode_modules@angularcommonsrcdirectivesng_plural.d.ts:78:53
Cannot find name 'Object'.
ERROR in [default] C:sharedang2bootnode_modules@angularcommonsrcdirectivesng_switch.d.ts:12:79
Cannot find name 'Object'.

如何清除此错误信息?

谢谢SR

几天后,我卸载并重新安装了angular-cli并创建了一个新项目。

npm uninstall -g angular-cli 
npm cache clean
npm install -g angular-cli@webpack

相关内容

  • 没有找到相关文章

最新更新