Недавно я установил Ubuntu и клонировал свой проект React.всякий раз, когда я запускаю npm run dev
, мой сервер загружается нормально, но клиент выдает следующую ошибку.
events.js:174
throw er; // Unhandled 'error' event
^
Error: spawn /home/bing/Public/TechIndia/client/node_modules/opn/xdg-open EACCES
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@0.1.0 start: `react-scripts start "client"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/bing/.npm/_logs/2019-07-06T21_22_35_051Z-debug.log
Я пробовал все решения в подобных вопросах, но это не помогло.Есть идеи?