Categories
English Troubleshooting

Steps to run Angular on a running project in windows 7

  • Install a newer version of NPM, if there is already an old version then it is better to remove it and then to install a new version.
  • Insure that the NPM path is correct, try:
    “npm get prefix” 
  • from visual studio code to see the existing path. If the path was not correct then set it from system variables. If you set the system variables and it was not running, then do:
“npm set prefix PATH_TO_NPM”, 

the path to npm should be to the path of npm not to npm_modules nor to the path inside it.

  • Run npm commands from command prompt with “run as administrator”.
npm install -g @angular/cli

Direct to the path of the project and run either:

 ng serve --proxy-config proxy.config.json

OR

 ng serve
  • If the project didn’t work then you need to run:
    npm link
  • You may face some problems with packages that are not installed, insure to install them such as: rxjs
  • You may need to run the following command:
ng update @angular/cli --migrate-only
--from=8.1.3

Leave a Reply

Your email address will not be published. Required fields are marked *