У меня проблема с этой частью.
Мой каталог C: / workspace / реагировать-магазин-приложение, но
Когда я запускаю npm, запускаю dev, npm это сборка в C: / путь к рабочей области.
Когда я разделяю клиента и сервер, он строится нормально.
C: \ workspace \ реагировать-shop-app> npm run dev
react-shop-app@1.0.0 dev C: \ workspace \ react-shop-app одновременно "npm run backend" "npm run start --prefix client"
[0] npm ERR! code ENOENT
[0] npm ERR! syscall open
[0] npm ERR! path C:\workspace\package.json
npm ERR! errno -4058
[0] npm ERR! enoent ENOENT: no such file or directory, open 'C:\workspace\package.json'
[0] npm ERR! enoent This is related to npm not being able to find a file.
[0] npm ERR! enoent
[0]
[0] npm ERR! A complete log of this run can be found in:
[0] npm ERR! C:\Users\yhs51\AppData\Roaming\npm-cache\_logs\2020-04-27T14_30_03_331Z-debug.log
[0] npm run backend exited with code 4294963238
[1] npm ERR! code ENOENT
[1] npm ERR! syscall open
[1] npm ERR! path C:\workspace\client\package.json
[1] npm ERR! errno -4058
[1] npm ERR! enoent ENOENT: no such file or directory, open 'C:\workspace\client\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
[1] npm ERR! enoent
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR! C:\Users\yhs51\AppData\Roaming\npm-cache\_logs\2020-04-27T14_30_03_609Z-debug.log
[1] npm run start --prefix client exited with code 4294963238
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-shop-app@1.0.0 dev: `concurrently "npm run backend" "npm run start --prefix client"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-shop-app@1.0.0 dev 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! C:\Users\yhs51\AppData\Roaming\npm-cache\_logs\2020-04-27T14_30_03_686Z-debug.log
C:\workspace\react-shop-app>