You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you exchange your project to node 14 and latest grunt version and you use grunt-mkdir, in that case you have to set the mode. Without the mode the system is not able to create the directories.
Looks like with node 14 the umask is not per default 0700.
eg. which is working in your code
options: {
mode: 0777, <====== required now but the number can be different e.g. 0700...
create: ['./tmp/a']
}
The text was updated successfully, but these errors were encountered:
I think it is because node 14 handles null differently: nodejs/node#32726
To fix the issue and restore the old behavior for NodeJS 14 the 4th line of src/mkdir.coffee must be changed from mode: null
to mode: undefined
That will then change the 5th line in the generated tasks/mkdir.js file from mode: null,
to mode: void 0,
That seems to be enought to make it work again in NodeJS 14 again.
To make it also able to run the grunt build & grunt test commands also the used grunt-mocha-cli package needs to be updated: "grunt-mocha-cli": "^1.14.0"
When you exchange your project to node 14 and latest grunt version and you use grunt-mkdir, in that case you have to set the mode. Without the mode the system is not able to create the directories.
Looks like with node 14 the umask is not per default 0700.
eg. which is working in your code
The text was updated successfully, but these errors were encountered: