为什么同时给出错误而不是运行,请解决我的问题?

问题描述

我正在执行concurrently "npm start" "npm run json-server"

它向我展示了这个

[0] Error occurred when executing command: npm start
[0] Error: spawn cmd.exe ENOENT
[0]     at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
[0]     at onErrorNT (internal/child_process.js:467:16)
[0]     at processticksAndRejections (internal/process/task_queues.js:84:21)
[1] Error occurred when executing command: npm run json-server
[1] Error: spawn cmd.exe ENOENT
[1]     at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
[1]     at onErrorNT (internal/child_process.js:467:16)
[1]     at processticksAndRejections (internal/process/task_queues.js:84:21)
[1] npm run json-server exited with code -4058
[0] npm start exited with code -4058

当我仅运行concurrently时,会出现此错误

PS F:\Web Development Work\My Projects\Nabiha Photostate App\data> concurrently
assert.js:101
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: [concurrently] no commands provided
    at module.exports (C:\Users\N2SPARTAN\AppData\Roaming\npm\node_modules\concurrently\src\concurrently.js:24:12)
    at module.exports (C:\Users\N2SPARTAN\AppData\Roaming\npm\node_modules\concurrently\index.js:21:12)
    at Object.<anonymous> (C:\Users\N2SPARTAN\AppData\Roaming\npm\node_modules\concurrently\bin\concurrently.js:148:1)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  generatedMessage: false,code: 'ERR_ASSERTION',actual: 0,expected: 0,operator: 'notStrictEqual'
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...