简体   繁体   English

npm 启动后无法构建

[英]Cannot build after npm start

I am brand new to node.js and I am trying to build my app so that I can deploy it.我是 node.js 的新手,我正在尝试构建我的应用程序以便部署它。

Right after I do npm start I cannot do anything.在我npm start之后,我什么也做不了。 Sorry if the question is too obvious, but I have never used node.js before.对不起,如果问题太明显了,但我以前从未使用过 node.js。

在此处输入图像描述

Cmd says that I can build my app which is what I want but I cannot type anything. Cmd 说我可以构建我想要的应用程序,但我无法输入任何内容。 I have tried doing npm run build before doing npm start but I get an empty index.html.我尝试在执行npm run build之前执行npm start但我得到一个空的 index.html。

These are my package.json 's scripts:这些是我的package.json的脚本: 在此处输入图像描述

After running npm start your app is running continuously.运行npm start后,您的应用程序将持续运行。 So if you want to type a new command, you would have to stop it or open a new terminal window/tab and run that command there.所以如果你想输入一个新命令,你必须停止它或打开一个新的终端窗口/选项卡并在那里运行该命令。 Just make sure you are in the same path you want to be.只要确保你在同一条你想成为的道路上。 In order to stop a running process (eg npm start ) simply press ctrl + c (that is, ctrl first, keep it pressed and then press c ) no matter if you are using mac or windows为了停止正在运行的进程(例如npm start )只需按ctrl + c (即先按ctrl ,按住它然后按c ),无论您使用的是 mac 还是 windows

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM