编译并运行Angular项目?

编译并运行Angular项目?,angular,Angular,我不熟悉angular项目,我有一个新的angular项目已部分完成,我尝试使用angular cli运行该项目,我尝试了在web上找到的所有可能的方法。我尝试了一些警告 ``-- angular-cli@1.0.0-beta.28.3 `-- UNMET PEER DEPENDENCY rxjs@^5.0.1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\angular-cli\no

我不熟悉angular项目,我有一个新的angular项目已部分完成,我尝试使用angular cli运行该项目,我尝试了在web上找到的所有可能的方法。我尝试了一些警告

``-- angular-cli@1.0.0-beta.28.3 `-- UNMET PEER DEPENDENCY rxjs@^5.0.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 
(node_modules\angular-cli\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 
fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: { 
"os":"win32","arch":"x64"})
npm WARN @angular/core@2.4.10 requires a peer of rxjs@^5.0.1 but none was 
installed.`
当我使用
npm安装npm启动
显示一些错误

`npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! my-dream-app@0.0.0 start: ng serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-dream-app@0.0.0 start script 'ng serve'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the my-dream-app 
package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ng serve
npm ERR! You can get information on how to open an issue for this project 
with:
npm ERR!     npm bugs my-dream-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls my-dream-app
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\PC\Desktop\my-dream-app\npm-debug.log`


如何编译和运行项目?

我认为您成功安装了本地软件包,但在运行项目时失败了。 您可以尝试以下命令:

ng serve
如果您需要,请参考本文档以获得正确的angular cli设置

当使用
ng serve
时,显示“您必须在angular cli项目中才能使用serve命令”。您是否安装angular cli,除非先运行此命令:
npm install-g@angular/cli
。和cd到项目内部并运行
ng serve
@borislemkeYes@ThienHoang现在我收到消息“Comiled successfully”@ThienHoangYes是的