-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gulp 4: The value of "mode" is out of range. Received 33279" #2177
Comments
This is a Node 10 bug (nodejs/node#20498). It should be fixed soonish. Revert to Node 9 or wait for their fix. |
I have the same problem except that in my case RangeError [ERR_OUT_OF_RANGE]: The value of "mode" is out of range. Received 33279 Thank you for helping me understand what's wrong I remember that I use Node 10 & Gulp 4 |
Still have this issue in
|
@klimashkin please don't "update" us on the fact that node still hasn't fixed their issue... It just adds yet-more noise to our lives. |
According to their changelog at https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.5.0 - it seems that node 10.5 (released on 6-20-18) has finally landed this fix. I'm unlocking this to get feedback on if this node problem is fixed for you so I can close the issue. |
@phated Yes. 10.5.0 is the first version after 10.0.0 where CI pipeline finished successfully. |
I encountered this error on node v10.3.0. However after seeing this thread and upgrading to v10.5.0, the error has gone away and everything works fine. It was probably it. (Thought i'd let you and future visitors in this thread know) |
I also confirm that I no longer encounter this error after updating to Node |
Thanks all for letting us know. I'm going to close this now. |
I have a
gulpfile.js
in the top level of the project and then I have my tasks split into files in agulp/tasks
. Running thegulpfile.js
from the project root with the source files insrc/*
directory**What were you expecting to happen?**s
When running from the root directory I expect to pass the full [relative] path to the
gulp.src
method.What actually happened?
RangeError [ERR_OUT_OF_RANGE]: The value of "mode" is out of range. Received 33279
at Object.fs.fchmod (fs.js:1024:11)
at Object.fchmod (/www/gaiatools.com/node_modules/graceful-fs/polyfills.js:237:17)
at mode (/www/gaiatools.com/node_modules/vinyl-fs/lib/file-operations.js:237:10)
at onStat (/www/gaiatools.com/node_modules/vinyl-fs/lib/file-operations.js:227:14)
at /www/gaiatools.com/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:150:5)
It seems Gulp is starting in the
src
directory, because when I remove thesrc
prefix from the path it works as expected. The paths weren't an issue prior to upgrading to Gulp 4In another project having
src
at the front of the path doesn't cause issues. So I'm at a loss for why it's an issue in this project.Please post a sample of your gulpfile (preferably reduced to just the bit that's not working)
Then I run it from the command line
gulp copy
This isn't the only task that has this issue either. My Sass compiler task has the same issue whensrc
is prefixed to the front of the path. I just used this one because it's less lines and doesn't use any pluginsWhat version of gulp are you using?
Gulp 4
What versions of npm and node are you using?
node v10
npm v6
The text was updated successfully, but these errors were encountered: