question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR in ./node_modules/admin-lte/dist/img/boxed-bg.jpg

See original GitHub issue

I run npm run prod which is:

cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

Using npm 5.6.0

app.scss

@import "~admin-lte/dist/css/AdminLTE.css";
@import "~admin-lte/dist/css/skins/_all-skins.css";
error  in ./node_modules/admin-lte/dist/img/boxed-bg.jpg
remote:
remote: Module build failed: Error: write EPIPE
remote:     at _errnoException (util.js:1022:11)
remote:     at WriteWrap.afterWrite [as oncomplete] (net.js:867:14)
remote:
remote:  @ ./node_modules/css-loader??ref--8-2!./node_modules/postcss-loader/lib??postcss!./node_modules/admin-lte/dist/css/AdminLTE.css 7:782-812
remote:  @ ./node_modules/css-loader??ref--8-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--8-4!./node_modules/sass-loader/lib/loader.js??ref--8-5!./resources/assets/sass/app.scss
remote:  @ ./resources/assets/sass/app.scss



ERROR in ./node_modules/admin-lte/dist/img/boxed-bg.jpg
remote: Module build failed: Error: write EPIPE
remote:     at _errnoException (util.js:1022:11)
remote:     at WriteWrap.afterWrite [as oncomplete] (net.js:867:14)
remote:  @ ./node_modules/css-loader??ref--8-2!./node_modules/postcss-loader/lib??postcss!./node_modules/admin-lte/dist/css/AdminLTE.css 7:782-812
remote:  @ ./node_modules/css-loader??ref--8-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--8-4!./node_modules/sass-loader/lib/loader.js??ref--8-5!./resources/assets/sass/app.scss
remote:  @ ./resources/assets/sass/app.scss
remote:  @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

How can I fix this boxed-bg.jpg problem? I can’t push on production due to this.

It seems this part is the issue:

.layout-boxed {
  background: url('../img/boxed-bg.jpg') repeat fixed;
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

13reactions
youhackmecommented, Mar 9, 2018

You can solve this by setting processCssUrls to false:

mix.sass('/path/to/', '/path/to/')
   .options({
      processCssUrls: false
   });
4reactions
ed-frutycommented, Mar 3, 2018

Try to run npm with --no-bin-links option, it helped to me.

npm install --no-bin-links
npm rebuild --no-bin-links
npm run watch # or npm run prod
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix JPG File not Opened as Have no Permission?
In this episode, we have discussed three different methods to fix the JPG files that cannot be opened due to a lack of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found