Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何正确使用npm更新angular-material2_Angularjs_Node.js_Npm_Angular Material2_Npm Update - Fatal编程技术网

Angularjs 如何正确使用npm更新angular-material2

Angularjs 如何正确使用npm更新angular-material2,angularjs,node.js,npm,angular-material2,npm-update,Angularjs,Node.js,Npm,Angular Material2,Npm Update,我在我的角度项目中使用角度材料2 这是依赖项下package.json中的条目 "@angular/material": "^2.0.0-beta.1", 我尝试了以下命令 npm update @angular/material 但最后还是有一些错误 +-- @angular/material@2.0.0-beta.2 `-- UNMET PEER DEPENDENCY rxjs@5.0.1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY:

我在我的角度项目中使用角度材料2

这是依赖项下package.json中的条目

"@angular/material": "^2.0.0-beta.1",
我尝试了以下命令

npm update @angular/material
但最后还是有一些错误

+-- @angular/material@2.0.0-beta.2
`-- UNMET PEER DEPENDENCY rxjs@5.0.1

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"
x64"})
npm WARN ng2-md-datatable@1.0.14 requires a peer of rxjs@~5.0.2 but none was installed.
npm WARN ng2-md-datatable@1.0.15 requires a peer of rxjs@~5.0.2 but none was installed.
npm WARN adminwebapp@1.0.0 No repository field.
甚至我的用户界面也被扭曲了。更新此内容的正确方法是什么

控制台中的错误

ORIGINAL EXCEPTION: md-input-container must contain an mdInput directive. Did you forget to add mdInput to the native input or textarea element?
ErrorHandler.handleError @ :3002/node_modules/@angular/core/bundles/core.umd.js:3066
2017-03-08 17:18:29.656 :3002/node_modules/@angular/core/bundles/core.umd.js:3069 ORIGINAL STACKTRACE:
ErrorHandler.handleError @ :3002/node_modules/@angular/core/bundles/core.umd.js:3069
2017-03-08 17:18:29.656 :3002/node_modules/@angular/core/bundles/core.umd.js:3070 Error
    at MdInputContainerMissingMdInputError.ZoneAwareError (http://localhost:3002/node_modules/zone.js/dist/zone.js:958:33)
    at MdInputContainerMissingMdInputError.MdError [as constructor] (http://localhost:3002/node_modules/@angular/material/bundles/material.umd.js:994:16)
    at new MdInputContainerMissingMdInputError (http://localhost:3002/node_modules/@angular/material/bundles/material.umd.js:11238:16)
    at MdInputContainer.ngAfterContentInit (http://localhost:3002/node_modules/@angular/material/bundles/material.umd.js:11544:19)
    at CompiledTemplate.proxyViewClass.View_Toolbar0.detectChangesInternal (/AppModule/Toolbar/component.ngfactory.js:168:75)
    at CompiledTemplate.proxyViewClass.AppView.detectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12208:18)
    at CompiledTemplate.proxyViewClass.DebugAppView.detectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12355:48)
    at CompiledTemplate.proxyViewClass.AppView.internalDetectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12193:22)
    at CompiledTemplate.proxyViewClass.View_SideNav0.detectChangesInternal (/AppModule/SideNav/component.ngfactory.js:892:20)
    at CompiledTemplate.proxyViewClass.AppView.detectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12208:18)
    at CompiledTemplate.proxyViewClass.DebugAppView.detectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12355:48)
    at CompiledTemplate.proxyViewClass.AppView.internalDetectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12193:22)
    at CompiledTemplate.proxyViewClass.View_AppComponent0.detectChangesInternal (/AppModule/AppComponent/component.ngfactory.js:51:19)
    at CompiledTemplate.proxyViewClass.AppView.detectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12208:18)
    at CompiledTemplate.proxyViewClass.DebugAppView.detectChanges (http://localhost:3002/node_modules/@angular/core/bundles/core.umd.js:12355:48)

我说你没有
rxjs@5.0.1
已安装。是吗?是的,它是“rxjs”:“5.0.1”,您是否尝试删除整个节点模块文件夹并再次安装
npm
?不,让我检查一下。如果您查看异常,它会声明
md输入容器必须包含mdInput指令
。根据beta版本,2删除了不推荐使用的
,因为它现在是一个指令。你还有这些用法吗?我说你没有
rxjs@5.0.1
已安装。是吗?是的,它是“rxjs”:“5.0.1”,您是否尝试删除整个节点模块文件夹并再次安装
npm
?不,让我检查一下。如果您查看异常,它会声明
md输入容器必须包含mdInput指令
。根据beta版本,2删除了不推荐使用的
,因为它现在是一个指令。你还有这些用法吗?