angular-phonecat tutorial- server not working

2019-05-27 18:15发布

I am working through this tutorial in angular-js. when I run the server, nothing seems to happen, my console looks like this:

This is in git bash but I get the same thing in windows console.
When I go to http://localhost:8000 it is blank and so is http://localhost:8000/app/index.html. No error messages.
When I browse to the app folder using windows explorer, index.html is present and has code.

Can anyone see the problem?

1条回答
Fickle 薄情
2楼-- · 2019-05-27 18:22

To be sure noe of your other installed programs interfere with the Angular JS Setup requirement, make sure to use, in your CMD where you are following the tutorial, to use:

  • a simplified PATH

     set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
     set GH=C:\path\to\git
     set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%
    
  • a PATH completed with the minimum you need

     set PATH=%PATH%;C:\path\to\npm
    

Then try again to launch your server.

查看更多
登录 后发表回答