Closed grickov closed 3 years ago
No, this isn't how you're supposed to do it. You should only run npm install from the project root directory. Npm will automatically link the dependencies for the workspaces.
This is because we are utilizing npm workspaces in order to not have duplicate packages in the same folder.
Yarn workspaces are not compatible with this yet.
`> destack-workspace@1.0.0 dev C:\sites\destack\destack
concurrently -k "cd lib/destack && npm run dev" "cd dev/nextjs-project && npm run dev"
[0]
[0] > destack@0.10.2 dev C:\sites\destack\destack\lib\destack
[0] > rollup -c -w
[0]
[0] "rollup" �� ���� ����७��� ��� ���譥�
[0] ��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
[0] npm ERR! code ELIFECYCLE
[0] npm ERR! errno 1
[0] npm ERR! destack@0.10.2 dev: rollup -c -w
[0] npm ERR! Exit status 1
[0] npm ERR!
[0] npm ERR! Failed at the destack@0.10.2 dev script.
[0] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0] npm WARN Local package.json exists, but node_modules missing, did you mean to install?
[0]
[0] npm ERR! A complete log of this run can be found in:
[0] npm ERR! C:\Users\Админ\AppData\Roaming\npm-cache_logs\2021-06-20T08_46_12_030Z-debug.log
[1]
[1] > next-destack-example@0.1.0 dev C:\sites\destack\destack\dev\nextjs-project
[1] > next dev
[1]
[0] cd lib/destack && npm run dev exited with code 1
--> Sending SIGTERM to other processes..
[1] "next" �� ���� ����७��� ��� ���譥�
[1] ��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
[1] npm ERR! code ELIFECYCLE
[1] npm ERR! errno 1
[1] npm ERR! next-destack-example@0.1.0 dev: next dev
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the next-destack-example@0.1.0 dev script.
[1] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[1] npm WARN Local package.json exists, but node_modules missing, did you mean to install?
[1]
[1] npm ERR! A complete log of this run can be found in:
[1] npm ERR! C:\Users\Админ\AppData\Roaming\npm-cache_logs\2021-06-20T08_46_12_095Z-debug.log
[1] cd dev/nextjs-project && npm run dev exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! destack-workspace@1.0.0 dev: concurrently -k "cd lib/destack && npm run dev" "cd dev/nextjs-project && npm run dev"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the destack-workspace@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\Админ\AppData\Roaming\npm-cache_logs\2021-06-20T08_46_12_178Z-debug.log`
I'm missing something? ))
Try re-running the steps after deleting everything please.
@grickov What version of npm are you using? You will need to have npm version 7 or newer that supports workspaces.
Thanks a lot, it helped. Didn't think about version 7 )). Stood npm v6.14.11
Good day! Doesn't start on localhost.
Your environment
Steps to reproduce
Result
`./pages/index.js:2:2 Module not found: Can't resolve '../../../node_modules/grapesjs/dist/css/grapes.min.css' 1 | if (process.env.NODE_ENV !== 'production') {