无法确定命令的项目或目标。角+电子

时间:2019-03-04 09:57:47

标签: angular twitter-bootstrap electron

我目前正在尝试使用电子程序来运行我的角度项目。我在package.json中创建了一个脚本,并添加了这一行

"electron": "electron ."

使用命令构建应用后

ng build myapp --prod

当我运行命令时:

ng run electron

我收到以下错误:

Cannot determine project or target for command.
Error: Cannot determine project or target for command.
at RunCommand.initialize (C:\Users\ ....\myapp\node_modules\@angular\cli\models\architect-command.js:37:23)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:695:11)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

我尝试更新cli,角形内核和bootstrap软件包,但似乎没有任何效果。 安装boostrap时,我运行了命令:

npm install --save bootstrap@3

之后,我将以下行添加到angular.json文件中:

"./node_modules/bootstrap/dist/css/bootstrap.min.css"

我运行ng时,一切工作正常,似乎与电子有关。谁能帮帮我吗? 谢谢

0 个答案:

没有答案