找不到模块'@ agm/core'

Vis*_*dar 4 javascript google-maps angularjs angular

我正试图在我的角度4应用程序中使用谷歌地图.
我正在使用Angular 4和Nodejs 8.

app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule, ApplicationRef } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';

import { AgmCoreModule } from '@agm/core';

@NgModule({
  imports: [
    BrowserModule,
    CommonModule,
    FormsModule,
    AgmCoreModule.forRoot({
      apiKey: 'GOOGLEAPIKEY'
    })
  ],
  providers: [],
  declarations: [ AppComponent ],
  bootstrap: [ AppComponent ]
})
export class AppModule {}
Run Code Online (Sandbox Code Playgroud)

请帮我 ??

Vis*_*dar 10

npm install @ agm/core --save

这个命令解决了我的问题.谢谢了很多.