npm run build fails
Describe the bug
lerna run build
lerna notice cli v8.1.6
lerna info versioning independent
Lerna (powered by Nx) Running target build for 3 projects
✖ @stacks/connect-ui:build
ERROR: [Errno 2] No such file or directory: 'build'
————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
Lerna (powered by Nx) Ran target build for 3 projects (276ms)
✔ 0/1 succeeded [0 read from cache]
✖ 1/1 targets failed, including the following:
- @stacks/connect-ui:build
To Reproduce
- clone repository
npm run build
Expected behavior Build should succeed.
Environment Debian 12, AMD64
Thanks for the report 🙏
Which noce version are you using and how did you install the dependencies (yarn/npm/etc.)?
iam using npm on node v18.19.0 (default version on my debian 12)
I tried npm install. That fails first because of outdated dependencies. After updating dependencies I get this error:
> postinstall
> concurrently 'husky install .github/.husky' 'yarn build:connect-ui'
00h00m00s 0/0: : [1] ERROR: [Errno 2] No such file or directory: 'build:connect-ui'
[1] yarn build:connect-ui exited with code 1
[0] install command is deprecated
[0] husky install .github/.husky exited with code 0
npm ERR! code 1
npm ERR! path .../connect
npm ERR! command failed
npm ERR! command sh -c concurrently 'husky install .github/.husky' 'yarn build:connect-ui'
It should work when using the yarn package manager instead. Can you try that?
yarn install worked but only on yarn berry, not with yarn classic. Maybe you mention that somewhere in the documentation.