ENOENT Error
See original GitHub issueReceive 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'])
.pipe(sourcemaps.init())
.pipe(less({
plugins: [autoprefix]
}))
.pipe(sourcemaps.write()) //.pipe(sourcemaps.write('./maps'))
.pipe(gulp.dest('./webroot/styles'));
});
Issue Analytics
- State:
- Created 8 years ago
- Comments:24 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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