BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Running Gulp will give Error: Cannot find module 'laravel-elixir'

Open UnderDogg opened this issue 10 years ago • 4 comments

Hi guys,

complete fresh install with git clone (master)

  • Readme didn't say anything about running gulp, but I figured that out myself...
  • Running Gulp gave error message (see bug report below)
  • In the master, the package.json needs to be updated, imho, but I'm not a gulp specialist...

For Bug Reports

PHP Version: 5.x

MySQL Version: 5.x

Expected Behavior: Running Gulp will compile sass .css and .js files

Actual Behavior: Error message: Error: Cannot find module 'laravel-elixir'

Solution: Open: package.json Add: "laravel-elixir": "*"

Don't forget that in the readme, it doesn't say that you need to run: npm install gulp (and gulp needs to be installed of course)

UnderDogg avatar Sep 15 '16 19:09 UnderDogg

Hi @UnderDogg, Thanks for taking the time to report this error. Are you looking to develop BookStack or just install it?

If you are just installing BookStack you simply use the release branch which does not require gulp/node/npm to be used since the final CSS/JS is bundled in.

If you are looking to develop, and are getting the error above then that's a bit strange since laravel-elixir is a listed dependancy. Just to be sure, Did you definately npm install before getting that error?

ssddanbrown avatar Sep 15 '16 19:09 ssddanbrown

I'm going to go ahead and close this. If you're still having issues just respond to the above and this can be re-opened.

ssddanbrown avatar Sep 22 '16 20:09 ssddanbrown

Hey, I solved this by changing node version

I was trying npm install laravel-elixir but it was refusing to install properly. It was with node 10.something, but after changing node version to 8.1.3 everything was like "now we're talking", no problems whatsoever

cili93 avatar May 17 '18 12:05 cili93

Just to confirm, Bookstack does not use elixir by default. A custom webpack based build system in used instead. See package.json scripts for the common actions.

On Thu, 17 May 2018, 13:28 Aleksandar Ilic, [email protected] wrote:

Hey, I solved this by changing node version

I was trying npm install laravel-elixir but it was refusing to install properly. It was with node 10.something, but after changing node version to 8.1.3 everything was like "now we're talking", no problem whatsoever

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/BookStackApp/BookStack/issues/191#issuecomment-389849032, or mute the thread https://github.com/notifications/unsubscribe-auth/AH9OihnUiLRKDJw1Exzqrfq64sFRo3N-ks5tzWzjgaJpZM4J-PhF .

ssddanbrown avatar May 17 '18 13:05 ssddanbrown