В fullstack почему npm run build выдает ошибку - PullRequest
0 голосов
/ 09 апреля 2020

Я получаю сообщение об ошибке при запуске проекта. Проект состоит из реакции и express приложений вместе.

ERROR

    yarn run v1.17.3
    $ cross-env BUILD:production node index
    events.js:174
          throw er; // Unhandled 'error' event
          ^

    Error: spawn BUILD:production ENOENT
        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)
        at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
        at startup (internal/bootstrap/node.js:283:19)
        at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
    Emitted 'error' event at:
        at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
        at onErrorNT (internal/child_process.js:415:16)
        [... lines matching original stack trace ...]
        at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! accounts@1.0.0 start: `yarn run build && node dist/server`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the accounts@1.0.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!     /Users/ardaersoy/.npm/_logs/2020-04-09T08_08_06_201Z-debug.log

** Я пробовал 1) узел killall, а затем запустить 2) попытаться изменить номер порта приложения сервера 3) удалить node_modules и npm установить

Никто из них не работает, пожалуйста, помогите мне **

...