简体   繁体   English

运行npm start时无法执行启动脚本

[英]Failed to exec start script when running npm start

I am receiving this error when trying to start my node application using the npm start command. 尝试使用npm start命令启动节点应用程序时收到此错误。

命令提示错误

From log 从日志


10 verbose lifecycle @~start: CWD: F:\\reactjs 10个详细的生命周期@〜start:CWD:F:\\ reactjs

11 silly lifecycle @~start: Args: [ '/d /s /c', 'webpack-dev-server --hot' ] 11愚蠢的生命周期@〜start:Args:['/ d / s / c','webpack-dev-server --hot']

12 silly lifecycle @~start: Returned: code: 4294967295 signal: null 12愚蠢的生命周期@〜start:返回:代码:4294967295信号:null

13 info lifecycle @~start: Failed to exec start script 13个信息生命周期@〜start:无法执行启动脚本

14 verbose stack Error: @ start: webpack-dev-server --hot 14详细堆栈错误:@开始: webpack-dev-server --hot

14 verbose stack Exit status 4294967295 14详细堆栈退出状态4294967295

14 verbose stack at EventEmitter. EventEmitter的14个详细堆栈。 (E:\\Program Files\\nodejs\\node_modules\\npm\\lib\\utils\\lifecycle.js:255:16) (E:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ lib \\ utils \\ lifecycle.js:255:16)

14 verbose stack at emitTwo (events.js:106:13) 14个更详细的堆栈attTwoTwo(events.js:106:13)

14 verbose stack at EventEmitter.emit (events.js:191:7) EventEmitter.emit的14个详细堆栈(events.js:191:7)

14 verbose stack at ChildProcess. 14个详细的堆栈在ChildProcess上。 (E:\\Program Files\\nodejs\\node_modules\\npm\\lib\\utils\\spawn.js:40:14) (E:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ lib \\ utils \\ spawn.js:40:14)

14 verbose stack at emitTwo (events.js:106:13) 14个更详细的堆栈attTwoTwo(events.js:106:13)

14 verbose stack at ChildProcess.emit (events.js:191:7) ChildProcess.emit上的14个详细堆栈(events.js:191:7)

14 verbose stack at maybeClose (internal/child_process.js:920:16) 14个详细堆栈可能在mayClose(internal / child_process.js:920:16)

14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) Process.ChildProcess._handle.onexit上的14个详细堆栈(internal / child_process.js:230:5)

15 verbose pkgid @ 15详细pkgid @

16 verbose cwd F:\\reactjs 16详细的CWD F:\\ reactjs

17 error Windows_NT 10.0.10586 17错误Windows_NT 10.0.10586

18 error argv "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" 18错误argv“ E:\\ Program Files \\ nodejs \\ node.exe”“ E:\\ Program Files \\ nodejs \\ node_modules \\ npm \\ bin \\ npm-cli.js”“开始”

19 error node v6.11.3 19个错误节点v6.11.3

20 error npm v3.10.10 20错误npm v3.10.10

21 error code ELIFECYCLE 21个错误代码ELIFECYCLE

22 error @ start: webpack-dev-server --hot 22错误@开始: webpack-dev-server --hot

22 error Exit status 4294967295 22错误退出状态4294967295

23 error Failed at the @ start script 'webpack-dev-server --hot'. 23错误@启动脚本“ webpack-dev-server --hot”失败。

23 error Make sure you have the latest version of node.js and npm installed. 23错误确保您已安装最新版本的node.js和npm。

23 error If you do, this is most likely a problem with the package, 23错误如果您这样做,则很可能是程序包出现问题,

23 error not with npm itself. 23错误不是npm本身。

23 error Tell the author that this fails on your system: 23错误告诉作者这在您的系统上失败:

23 error webpack-dev-server --hot 23错误的webpack-dev-server --hot

23 error You can get information on how to open an issue for this project with: 23错误您可以通过以下方式获取有关如何为此项目打开问题的信息:

23 error npm bugs 23个错误npm错误

23 error Or if that isn't available, you can get their info via: 23错误或者如果不可用,可以通过以下方式获取其信息:

23 error npm owner ls 23错误npm所有者ls

23 error There is likely additional logging output above. 23错误上面可能还有其他日志记录输出。


Your issue is in your webpack configuration. 您的问题出在您的webpack配置中。

The line that gives you this error is line 4 出现此错误的行是第4行

Configuration file found but no entry configured

This might help: 这可能会有所帮助:

Webpack configuration file found but no entry configured 找到Webpack配置文件,但未配置任何条目

here is the docs on webpack for entry: https://webpack.github.io/docs/configuration.html#entry 这是webpack上的文档供您输入: https ://webpack.github.io/docs/configuration.html#entry

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

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