angular-cli new angularjs2项目错误消息

时间:2016-09-05 01:46:33

标签: angular angular-cli

我已经从webpack安装了最新的角度cli。创建示例项目并运行它。在启动期间给出错误消息,但应用程序有效。

我想清除此启动错误消息。

像这样安装了角度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:\shared\ang2boot\node_modules\webpack\buildin\module.js
    Used by 2 module(s), i. e.
    C:\shared\ang2boot\node_modules\punycode\punycode.js
* c:\shared\ang2boot\node_modules\webpack\buildin\module.js
    Used by 1 module(s), i. e.
    c:\shared\ang2boot\node_modules\rxjs\util\root.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:\shared\ang2boot\node_modules\@angular\common\src\directives\ng_class.d.ts:81:33
Cannot find name 'Set'.

ERROR in [default] C:\shared\ang2boot\node_modules\@angular\common\src\directives\ng_if.d.ts:37:76
Cannot find name 'Object'.

ERROR in [default] C:\shared\ang2boot\node_modules\@angular\common\src\directives\ng_plural.d.ts:78:53
Cannot find name 'Object'.

ERROR in [default] C:\shared\ang2boot\node_modules\@angular\common\src\directives\ng_switch.d.ts:12:79
Cannot find name 'Object'.

如何清除此错误消息?

感谢 SR

1 个答案:

答案 0 :(得分:0)

几天后我卸载并重新安装了angular-cli并创建了新项目。它现在有效。

npm uninstall -g angular-cli 

npm cache clean

npm install -g angular-cli@webpack