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
- What is the role of the package-lock.json?
- 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 NodeJS and NPM to the next versions?
- How can I update npm itself?
- How to install a previous exact version of a NPM package?
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Angular, image not found (GET 404)
- npm check and update package if needed
- Angular: conditional class with *ngClass
- After command npm start “Missing script:start” error
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- sudo: npm: command not found
- Difference between Constructor and ngOnInit
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- AngularJS vs Angular [closed]
- Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
- ExpressionChangedAfterItHasBeenCheckedError Explained
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- Angular 10 – can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
- Difference between npx and npm?
- Please run `npm cache clean`
- How to use *ngIf else?
- ngFor with index as value in attribute
- npm ERR cb() never called
- What is pipe for in RxJS?
- NPM clean modules
- ‘node’ is not recognized as an internal or an external command, operable program or batch file while using phonegap/cordova
- Angular: Get current index in ngFor
- What is .subscribe in Angular?
- What is an unhandled promise rejection?
- NPM Start not starting local server
- forbidden 403 on image URLS
- BehaviorSubject vs Observable?
- Angular 6 “Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’.”
- What does ” yarn build ” command do? Are ” npm build ” and “yarn build” similar commands?
- NPM ELIFECYCLE error – using node server.js command
- how to render a react component using ReactDOM Render
- What is the –save option for npm install?
- What is the difference between yarn run and npm start?
- Node.js – SyntaxError: Unexpected token import
- nodemon not working: -bash: nodemon: command not found
- ERR_INVALID_HTTP_RESPONSE using Angular 7 and ASP.Net Core 2.2 in Google Chrome browser
- Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- npm install not working in windows
- nodemon not found in npm
- Node.js – SyntaxError: Unexpected token import
- Angular: mat-form-field must contain a MatFormFieldControl
- nodemon not found in npm
- (change) vs (ngModelChange) in angular
- What is the difference between Promises and Observables?
- Angular – ng: command not found
- mat-form-field must contain a MatFormFieldControl
- webpack: Module not found: Error: Can’t resolve (with relative path)
- Angular File Upload
- Angular map. What is it?
- formSelect() method in materialize does’nt work in angular 6 inputs
- ExpressJS – throw er Unhandled error event
- ERROR Error: No value accessor for form control with unspecified name attribute on switch
- VSCode cannot find module ‘@angular/core’ or any other modules
- form control error:ERROR Error: No value accessor for form control with unspecified name attribute