我有一个运行良好的 Reac/Redux 应用程序,但是当我运行以下命令时
npm run test
我收到以下错误
6 info lifecycle MyApp@0.0.0~test: MyApp@0.0.0
7 verbose lifecycle MyApp@0.0.0~test: unsafe-perm in lifecycle true
8 verbose lifecycle MyApp@0.0.0~test: PATH: C:\....\...
9 verbose lifecycle MyApp@0.0.0~test: CWD: C:\projects\MyApp\MyApp\MyApp-web
10 silly lifecycle MyApp@0.0.0~test: Args: [ '/d /s /c', 'mocha --require src/testSetup.js "src/**/*.test.js*" ' ]
11 silly lifecycle MyApp@0.0.0~test: Returned: code: 1 signal: null
12 info lifecycle MyApp@0.0.0~test: Failed to exec test script
13 verbose stack Error: MyApp@0.0.0 test: `mocha --require src/testSetup.js "src/**/*.test.js*" `
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\....\NodeJs\12.1.0\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:196:13)
13 verbose stack at ChildProcess.<anonymous> (C:\....\NodeJs\12.1.0\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:196:13)
13 verbose stack at maybeClose (internal/child_process.js:1000:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5)
我不知道是什么导致了这个问题。知道如何解决此错误吗?