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

后端 未结 10 1546
执念已碎
执念已碎 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:09

    Faced the same issue and solved by executing the npm link command.

    When we run npm link in a module’s root directory, npm creates a symbolic link from our “global node_modules” directory to the local module’s directory

    The “global node_modules” directory is a special directory where all modules installed with npm install -g are stored. We can find the path to our global node_modules directory by running npm root -g

    Visit :- https://medium.com/@alexishevia/the-magic-behind-npm-link-d94dcb3a81af

提交回复
热议问题