“You seem to not be depending on ”@angular/core“.”

后端 未结 10 1552
执念已碎
执念已碎 2020-12-24 11:05

When I try to build my project running the following command:

ng build --environment=prod --aot=false  --output-pa         


        
10条回答
  •  南方客
    南方客 (楼主)
    2020-12-24 11:10

    I went down the list of installing the various dependencies as prompted in the terminal. I am running on Windows so I also installed windows Build Tools.

    I ran ng serve and got "You seem to not be depending on "@angular/core" and/or "rxjs". This is an error."

    Then ran

    npm link
    

    followed by

    ng serve
    

    Everything is now running. Not sure how much of what I did was necessary/redundant but I can now build Angular projects.

提交回复
热议问题