突然报错
Module not found: Error: Can't resolve '@angular/flex-layout' in '\src\app'
这个错误发生在我安装@angular/cdk之后,
在这个错误之后我再次使用安装了 flex-layout
npm install @angular/flex-layout
但是现在有错误
Module not found: Error: Can't resolve '@angular/http' in '\src\app'
如果我安装了一个 http,那么其他一些模块就会丢失。如何阻止这种情况?出了什么问题?
如果我安装@angular/http 然后它再次以
开头Module not found: Error: Can't resolve '@angular/flex-layout' in '\src\app'
最佳答案
尝试添加对 node_modules 文件夹的完全读写访问权限
chmod -R 777 /node_modules
然后更新node_modules包
npm install
关于angular - 找不到模块 : Error: Can't resolve '@angular/flex-layout' in '/app' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49113731/