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.

Receive error:

lmauldin@9c68fd81e7d7:/var/www/html/pmtool/erp-extender/pms420$ ./node_modules/.bin/gulp less
[15:24:43] Using gulpfile /var/www/html/pmtool/erp-extender/pms420/gulpfile.js
[15:24:43] Starting 'less'...
Potentially unhandled rejection [2] Error: ENOENT, open '<input css 1>'
    at Error (native)

Relevant gulp file:

gulp.task("less", function() {
    var cleancss = new lessPluginCleanCSS({ advanced: true });
   var autoprefix= new lessPluginAutoPrefix({browsers: ["last 2 versions"]});
    //return gulp.src(['./assets/styles/application.less', './assets/styles/*/*.less'])
    return gulp.src(['./assets/styles/application.less'])
            plugins: [autoprefix]
        .pipe(sourcemaps.write()) //.pipe(sourcemaps.write('./maps'))

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

cybersamcommented, May 27, 2016

Can someone with edit access please correct the title of this issue by replacing “ENONET” with “ENOENT”? This will save some time for people (like me) searching online for “ENONET”; this issue is the first one shown by Google.

wolfy1339commented, May 30, 2016

I will take a look, but in the mean time I can suggest another workaround, instead of using LESS plugins we use gulp or grunt plugins instead. For some reason that fixes the sourcemap problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm - How to resolve Node.js: "Error: ENOENT: no such file or ...
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >
How To Fix the “Enoent” Error? - Position Is Everything
The “enoent” can appear because of some missing files or usage of the relative path that can be solved by creating an expected...
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
I recently struggled for a while with an npm error thrown when executing npm install of some package. The error message was npm...
Read more >
Error: ENOENT: no such file or directory when using with axios ...
Describe the bug npm run dev generate errors when you install and import axios ... Error: ENOENT: no such file or directory, stat...
Read more >
How to solve npm ERR! enoent This is related to npm not ...
The code ENOENT means that npm fails to open a file or directory that's required for executing the command. The npm start command...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found