Cannot find module @angular/core + angular2

后端 未结 4 1865
旧时难觅i
旧时难觅i 2021-01-03 04:45

I am trying to create an Angular 2 application using Typescript in Visual Studio 2015. I have installed npm on my machine. When I compile my application , I am getting error

4条回答
  •  萌比男神i
    2021-01-03 05:04

    1. Install nodejs
    2. Open cmd prompt and type 'cd your project directory'
    3. Type 'npm install' and hit enter.

    This will create a node_modules folder within that directory which should have the @angular/core that's required.

提交回复
热议问题