Еще вопрос как запустить проект на все команды выкидывает ошибки:
yarn build
yarn run v1.22.10
$ next build && tsc --project tsconfig.server.json
/bin/sh: 1: next: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn start
yarn run v1.22.10
$ cross-env NODE_ENV=production node dist/server/index.js
/bin/sh: 1: cross-env: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn dev
yarn run v1.22.10
$ nodemon
/bin/sh: 1: nodemon: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.