Cannot install bedrock or laravel-mix npm packages

This is what I get when I try to install bedrock

→ npm i @concretecms/bedrock
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: less-loader@5.0.0
npm WARN Found: webpack@5.73.0
npm WARN node_modules/webpack
npm WARN peer webpack@“>=2” from babel-loader@8.2.5
npm WARN node_modules/babel-loader
npm WARN babel-loader@“^8.0.4” from laravel-mix@4.0.10
npm WARN node_modules/laravel-mix
npm WARN 4 more (sass-loader, terser-webpack-plugin, …)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@“^2.0.0 || ^3.0.0 || ^4.0.0” from less-loader@5.0.0
npm WARN node_modules/less-loader
npm WARN less-loader@“^5.0.0” from @concretecms/bedrock@1.3.2
npm WARN node_modules/@concretecms/bedrock
npm WARN
npm WARN Conflicting peer dependency: webpack@4.46.0
npm WARN node_modules/webpack
npm WARN peer webpack@“^2.0.0 || ^3.0.0 || ^4.0.0” from less-loader@5.0.0
npm WARN node_modules/less-loader
npm WARN less-loader@“^5.0.0” from @concretecms/bedrock@1.3.2
npm WARN node_modules/@concretecms/bedrock
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @pnotify/bootstrap3@5.2.0
npm WARN Found: bootstrap@4.6.2
npm WARN node_modules/bootstrap
npm WARN peer bootstrap@“^3.1.0 || ^4.4.0” from bootbox@5.5.3
npm WARN node_modules/bootbox
npm WARN bootbox@“^5.5.1” from @concretecms/bedrock@1.3.2
npm WARN node_modules/@concretecms/bedrock
npm WARN 3 more (bootstrap-select, @pnotify/bootstrap4, selectize-bootstrap4-theme)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer bootstrap@“^3.4.1” from @pnotify/bootstrap3@5.2.0
npm WARN node_modules/pnotify/node_modules/@pnotify/bootstrap3
npm WARN @pnotify/bootstrap3@“5.2.0” from pnotify@5.2.0
npm WARN node_modules/pnotify
npm WARN
npm WARN Conflicting peer dependency: bootstrap@3.4.1
npm WARN node_modules/bootstrap
npm WARN peer bootstrap@“^3.4.1” from @pnotify/bootstrap3@5.2.0
npm WARN node_modules/pnotify/node_modules/@pnotify/bootstrap3
npm WARN @pnotify/bootstrap3@“5.2.0” from pnotify@5.2.0
npm WARN node_modules/pnotify

up to date, audited 1376 packages in 5s

83 packages are looking for funding
run npm fund for details

32 vulnerabilities (20 moderate, 11 high, 1 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

And for lavavel-mix I get this:
→ npm i laravel-mix
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: less-loader@5.0.0
npm WARN Found: webpack@5.73.0
npm WARN node_modules/webpack
npm WARN peer webpack@“>=2” from babel-loader@8.2.5
npm WARN node_modules/babel-loader
npm WARN babel-loader@“^8.0.4” from laravel-mix@4.1.4
npm WARN node_modules/laravel-mix
npm WARN 4 more (sass-loader, terser-webpack-plugin, …)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer webpack@“^2.0.0 || ^3.0.0 || ^4.0.0” from less-loader@5.0.0
npm WARN node_modules/less-loader
npm WARN less-loader@“^5.0.0” from @concretecms/bedrock@1.3.2
npm WARN node_modules/@concretecms/bedrock
npm WARN
npm WARN Conflicting peer dependency: webpack@4.46.0
npm WARN node_modules/webpack
npm WARN peer webpack@“^2.0.0 || ^3.0.0 || ^4.0.0” from less-loader@5.0.0
npm WARN node_modules/less-loader
npm WARN less-loader@“^5.0.0” from @concretecms/bedrock@1.3.2
npm WARN node_modules/@concretecms/bedrock
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @pnotify/bootstrap3@5.2.0
npm WARN Found: bootstrap@4.6.2
npm WARN node_modules/bootstrap
npm WARN peer bootstrap@“^3.1.0 || ^4.4.0” from bootbox@5.5.3
npm WARN node_modules/bootbox
npm WARN bootbox@“^5.5.1” from @concretecms/bedrock@1.3.2
npm WARN node_modules/@concretecms/bedrock
npm WARN 3 more (bootstrap-select, @pnotify/bootstrap4, selectize-bootstrap4-theme)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer bootstrap@“^3.4.1” from @pnotify/bootstrap3@5.2.0
npm WARN node_modules/pnotify/node_modules/@pnotify/bootstrap3
npm WARN @pnotify/bootstrap3@“5.2.0” from pnotify@5.2.0
npm WARN node_modules/pnotify
npm WARN
npm WARN Conflicting peer dependency: bootstrap@3.4.1
npm WARN node_modules/bootstrap
npm WARN peer bootstrap@“^3.4.1” from @pnotify/bootstrap3@5.2.0
npm WARN node_modules/pnotify/node_modules/@pnotify/bootstrap3
npm WARN @pnotify/bootstrap3@“5.2.0” from pnotify@5.2.0
npm WARN node_modules/pnotify

added 19 packages, removed 3 packages, changed 4 packages, and audited 1392 packages in 5s

83 packages are looking for funding
run npm fund for details

35 vulnerabilities (23 moderate, 11 high, 1 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues possible (including breaking changes), run:
npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

Running npm audit fix --force doesn’t seem to fix anything. I don’t know node or npm well enough to troubleshoot but I assume you need to fix your dependencies so they aren’t compromised.

When I try to run production I get this:
npm run production

production
mix --production

sh: mix: command not found

Quick suggestion: Maybe you guys could rename Bedrock and call it Compressed Sand instead. If Bedrock won’t even install then I do not think that word means what you think it means.

I read this

And then followed each step in the menu and it all worked perfectly.

I am a fair noob to using npm and webpack but the documentation is well written and easy to follow.

Well done @ConcreteCMS

@sparkymeister did you look at this and follow it to the end?

1 Like

I also managed to follow this tutorial and have it working OK.

It did take a bit of careful reading to get it up and running successfully.

It would be lovely to have a library of short videos demonstrating how to set up V9 bedrock and customise themes and blocks etc… I think it would help a wider audience understand and adopt ConcreteCMS.

ADDITIONAL NOTES:
I can’t say it worked perfectly on the first attempt as I followed the tutorial and I did get error messages along the way. I will have to trace back and possibly follow it again to see what issues popped up and how I overcame them.

I work on a Mac using MAMP with Terminal and also Visual Studio Code to run the (rather slow performing) build/compiling method.

I did follow the docs. Did nobody else get those errors on install?

At the risk of over-generalising, the anecdotal evidence is that the process works for just about half of those reporting on the forums. There is also reporting bias. Those it works for don’t complain on the forums, so it probably works for well over half of us.

As to why:

  • Are there missing or ambiguous steps in the process that seem so ‘obvious’ to some that they don’t even know the steps are missing, but to others are fatal?
  • Is there something about the environment?
  • Could be something totally random like timing?

If we can discover why, then maybe the process can be improved.

So lets start gathering evidence by anyone reporting success or failure also reporting

  • Operating system?
  • Which of the tools involved were already installed and used for other things before attempting Bedrock?
  • Any steps that appeared to be disproportionately long or needed to be repeated?

Anything else that could affect the process?

I don’t think @sparkymeister installed Laravel mix. It’s documented in the process on that page but if you’re going too fast you could miss it.