0

I was following steps to upgrade from Angular 4.3 to Angular 5. Here: Migrating Angular 4.x to Angular 5

The angular update steps all went through smoothly.

The problem came after I uninstalled Angular CLI. And when trying to re-install, I get an unusual Python error that doesn't stop unless I force the task to stop.

enter image description here

If I run the install command npm install -g @angular/cli@latest 2 more times however. It finishes without error.

Running ng help works. But ng serve results in the following error: enter image description here

I actually have the Python at that exact location. C:\Python27\python.exe And I used to be running Angular CLI without a problem. So the python exe didn't cause an issue before I uninstalled it.

Also I tried searching for this "watchpack" error, and manually installed webpack again. That didn't solve my error.

I tried uninstalling Angular CLI at global/local. And re-install at the global level again, this python error consistently show up. And it's one of those infinite loop errors that does not stop without manual intervention.

Most Python errors I have seen from Angular CLI git-hub is an error/warning that ends.

node v6.10.2

npm 5.0.4

Angela P
  • 1,939
  • 2
  • 14
  • 18

1 Answers1

-1

I think you need to install the windows build tools which now contain the python you are missing :

npm install --global --production windows-build-tools

https://github.com/felixrieseberg/windows-build-tools/issues/56

Alex Beugnet
  • 4,003
  • 4
  • 23
  • 40
  • Care to comment about the downvote ? I've had this issue before and this was the fix, so I can't do much more about this... – Alex Beugnet Jan 19 '18 at 11:10