Download phonecat source code
Use git to download the source code for learning
git clone git://github.com/angular/angular-phonecat.git
Start the service
This command will reset the working directory of the phonecat project. It is recommended to run this command at each learning step to change the number in the command to the number corresponding to your learning step. This command will clear any changes you have made in the working directory.
2. Start the service and run the command:
npm start, the process takes a few minutes.
The following figure shows that starting up HTTP server, serving. / app is successful.
Open browser input localhost:8000 You can see “nothing here yet!” on the page
Indicates that the environment is configured successfully.
Angularjs Chinese community use the command here:
node scripts/web-server.js, will report an error,
Error prompt: module.js:442
throw err; ^
Error: Cannot find module ‘G:fontEndstudyNodeAngularJSangular-phonecatscrip
Look at the path, there is no web- server.js Documents. So we’ll use the command instead
npm startThe error can be resolved and the service can be started successfully.