当我们运行此命令(离子实验室)时,它将显示此错误。 我们如何解决它..
ng run app:serve --host=0.0.0.0 --port=8100
[ng] The run command requires to be run in an Angular project, but a project definition could not be found.
[ERROR] ng has unexpectedly closed (exit code 1).
The Ionic CLI will exit. Please check any output above for error details.
答案 0 :(得分:0)
似乎您不在正确的文件夹中。您必须在运行build
命令的位置(或初始化Angular项目的任何位置)运行Bar
命令。
答案 1 :(得分:0)
如果在包含package.json的目录中,请检查命令行,然后运行以下命令:
npm install
ionic serve