When I try to build my project running the following command:
ng build --environment=prod --aot=false --output-pa
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 directoryThe “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 runningnpm root -g
Visit :- https://medium.com/@alexishevia/the-magic-behind-npm-link-d94dcb3a81af