Not sure whether below approach will solve your problem or not, please try once.
I have also faced the same issue while executing below command.
D:\My_Project>ng serve
Then I have followed below steps and it worked for me.
D:\My_Project>npm link D:\My_Project>ng serve
If this is not working kindly let me know I will try to reproduce the error which you are getting and try to give you solution as soon as possible.
Related Posts:
- Webpack command not found
- How to solve npm error “npm ERR! code ELIFECYCLE”
- How to solve npm error “npm ERR! code ELIFECYCLE”
- Could not find module “@angular-devkit/build-angular”
- Can not find module “@angular-devkit/build-angular”
- When to use ‘npm start’ and when to use ‘ng serve’?
- What is the difference between npm install and npm run build?
- How to upgrade Angular CLI to the latest version
- Missing write access in mac to /usr/local/lib/node_modules
- ‘npm’ is not recognized as an internal or external command, operable program or batch file
- ng is not recognized as an internal or external command
- npm ERR! registry error parsing json – While trying to install Cordova for Ionic Framework in Windows 8
- Cannot find module ‘@angular-devkit/core’
- Field ‘browser’ doesn’t contain a valid alias configuration
- Unable to resolve dependency tree error when installing npm packages
- npm – EPERM: operation not permitted on Windows
- ‘ng’ is not recognized as an internal or external command, operable program or batch file
- error: This is probably not a problem with npm. There is likely additional logging output above
- npm – “Can’t find Python executable “python”, you can set the PYTHON env variable.”
- ng serve does not work
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- Repository is not clean. Please commit or stash any changes before updating In Angular 8
- Repository is not clean. Please commit or stash any changes before updating In Angular 8
- Angular 2 Cannot read property ‘config’ of null
- Couldn’t find preset “env” relative to directory
- How do I fix the npm UNMET PEER DEPENDENCY warning?
- Angular2 CLI error “@angular/compiler-cli” package was not properly installed
- How to update TypeScript to latest version with npm?
- webpack is not recognized as a internal or external command,operable program or batch file
- Local workspace file (‘angular.json’) could not be found. But same code works in another computer
- How to use bootstrap 4 in angular 2?
- Angular4 core.es5.js Uncaught reflect-metadata shim is required when using class decorators
- npm install with error: `gyp` failed with exit code: 1
- Error: EPERM: operation not permitted, unlink ‘D:\Sources\**\node_modules\fsevents\node_modules\abbrev\package.json’
- What is the best way to delete a component with CLI
- GET http://localhost:4200/null 404 (Not Found) in angular2 with angular-cli
- How do I install Angular 2 using NPM?
- Electron – Not allowed to load local resource
- angular-cli where is webpack.config.js file – new angular6 does not support ng eject
- Angular: ‘Cannot find a differ supporting object ‘[object Object]’ of type ‘object’. NgFor only supports binding to Iterables such as Arrays’
- How can I update npm itself?
- How to install a previous exact version of a NPM package?
- Difference between Constructor and ngOnInit
- Angular: Get current index in ngFor
- What is .subscribe in Angular?
- BehaviorSubject vs Observable?
- Angular 6 “Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’.”
- NPM ELIFECYCLE error – using node server.js command
- nodemon not working: -bash: nodemon: command not found
- Node.js – SyntaxError: Unexpected token import
- Angular: mat-form-field must contain a MatFormFieldControl
- Angular – ng: command not found
- ExpressJS – throw er Unhandled error event
- ERROR Error: No value accessor for form control with unspecified name attribute on switch
- What exactly is the ‘react-scripts start’ command?
- Why am I getting “Error socket hang up” response?
- Node.js Port 3000 already in use but it actually isn’t?
- No value accessor for form control
- TypeScript-‘s Angular Framework Error – “There is no directive with exportAs set to ngForm”
- Angular 2 Cannot find control with unspecified name attribute on formArrays
- Node update a specific package
- What is the equivalent of ngShow and ngHide in Angular 2+?
- how to refresh page in angular 2
- What is ViewChild in Angular2?
- CentOS error – sudo: effective uid is not 0, is sudo installed setuid root?
- Angular 5 to 6 Upgrade: Property ‘map’ does not exist on type Observable
- Angular 2 – Using ‘this’ inside setTimeout
- ‘router-outlet’ is not a known element
- Angular: Cannot find a differ supporting object ‘[object Object]’
- Local package.json exists, but node_modules missing
- npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
- Set focus on element
- Cannot npm install due to node-gyp: binding.gyp not found
- Downgrade npm to an older version
- node.js: cannot find module ‘request’
- Error : Cannot find primary outlet to load
- Templating with href in angular (4)
- SyntaxError: Unexpected token C in JSON at position 0 – Ionic 2 Http GET request
- Angular 2.0 and Modal Dialog
- NPM self_signed_cert_in_chain
- Implement session storage in an Angular 8 application
- Can’t bind to ‘routerLink’ since it isn’t a known property
- npm “failed to parse json”
- What does the .subscribe() function do?
- How to get current route
- How to integrate WordPress with Angular 8 for website?
- What is Angular Routing?
- npm update check failed
- Angular error: Please add a @NgModule annotation
- How to enable production mode?
- Angular 5: “No provider for ControlContainer”
- Mask for an Input to allow phone numbers?
- Angular 2 Sort table columns
- How to use onBlur event on Angular2?
- Can pm2 run an ‘npm start’ script
- What is the difference between Bower and npm?
- Check if Variable is Empty – Angular 2
- how to update npm on macOS
- nvm is not compatible with the npm config “prefix” option:
- How to apply filters to *ngFor?