简体   繁体   English

从新行开始 npm run dev 的 webpack 命令

[英]webpack command of npm run dev from a new line

After finished specified command npm run dev , I can't again write new command in node console.完成指定命令npm run dev 后,我无法再次在节点控制台中编写新命令。

在此处输入图片说明

How can I continue to write from a new line?我怎样才能从新行继续写作?

Thanks, everybody for the help!谢谢大家帮忙!

npm run dev in most cases is intended to keep running, detect changes, re-transpile files and (hot) reload the application.在大多数情况下, npm run dev旨在保持运行、检测更改、重新编译文件和(热)重新加载应用程序。 That's intended behavior, so don't panic.这是预期的行为,所以不要惊慌。

You should leave that terminal untouched and simply open a second one if you want to do anything else.如果您想做任何其他事情,您应该保持该终端不变,只需打开第二个即可。

You will have to open another terminal window.您将不得不打开另一个终端窗口。 The reason is that webpack is now listening for changes - meaning the process in your current terminal window is still running.原因是 webpack 现在正在侦听更改 - 这意味着当前终端窗口中的进程仍在运行。 Opening another terminal window will allow you to run other commands while the webpack process is still running.打开另一个终端窗口将允许您在 webpack 进程仍在运行时运行其他命令。

I found the right way.我找到了正确的方法。 CTRL+C, after need to choose stop or not the execution of processing of listening and then will get a new line. CTRL+C,需要选择停止或不执行监听处理后会换行。

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

相关问题 在webpack中键入命令“ npm run dev”时,它将创建一个以NaN结尾的文件夹 - When typing command “npm run dev” for webpack, it creates a folder that ends with NaN 无法将命令“ webpack”替换为“ npm run build” - Cannot replace command 'webpack' by 'npm run build' 如何基于npm start命令的命令行参数从同一webpack配置文件中定位不同的应用程序 - how to target differnt apps from same webpack config file based on command line arguments to npm start command 从命令行/ npm脚本对文件更改运行业力 - Run karma on file change from command line/npm script 尝试运行 npm 运行开发命令时遇到错误 - Running into error when trying to run npm run dev command 如何使用webpack中的npm脚本从代码访问命令行变量? - How to access command line variables from the code using npm script in webpack? webpack-dev-server npm运行dev引发TypeError:无法设置未定义的属性“端口” - webpack-dev-server npm run dev throwing TypeError: Cannot set property 'port' of undefined npm run dev命令不适用于vuejs的hackernews示例 - npm run dev command does not work on vuejs' hackernews example 命令“npm run dev”不起作用,我该怎么办? - The command 'npm run dev' is not working, what should I do? 在反应应用程序中运行 npm run dev 命令时出错 - Error while running npm run dev command in react application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM