报错:
13 verbose stack Error: speechstudio@1.0.0 local: `prettier --write "./**/*.{tsx,ts,js,html,css,scss}" && webpack-dev-server --hot --config webpack.local.js`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (D:AppDataNodejs
ode_modules
pm
ode_modules
pm-lifecycleindex.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (D:AppDataNodejs
ode_modules
pm
ode_modules
pm-lifecyclelibspawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid speechstudio@1.0.0
15 verbose cwd D:MSworkProjectSpeechServicesPortalsrcSpeechServices.PortalClient
16 verbose Windows_NT 10.0.18363
17 verbose argv "D:\AppData\Nodejs\node.exe" "D:\AppData\Nodejs\node_modules\npm\bin\npm-cli.js" "run" "local"
18 verbose node v12.18.2
19 verbose npm v6.14.5
20 error code ELIFECYCLE
21 error errno 1
22 error speechstudio@1.0.0 local: `prettier --write "./**/*.{tsx,ts,js,html,css,scss}" && webpack-dev-server --hot --config webpack.local.js`
22 error Exit status 1
23 error Failed at the speechstudio@1.0.0 local script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
解决:
删除package-lock.json文件重新npm install.
如果解决不了,可以考虑(这个要慎重,相当于重新install所有,会花很多时间)
npm cache clean --force
删除 node_modules 文件夹
删除 package-lock.json 文件
npm install