I am getting this error when I try to run Gulp from the task runner I think its related to me updating my npm project but I am not sure how to fix it. Do I need to install a different version of npm?
>Failed to run "C:\WebProjects\ITF\Tool.Web\Gulpfile.js"...
cmd.exe /c gulp --tasks-simple
fs.js:47
} = primordials;
^
ReferenceError: primordials is not defined at fs.js:47:5
C:\WebProjects\ITF\Tool.Web>npm ls natives
[email protected] C:\WebProjects\ITF\Tool.Web
`-- [email protected]
`-- [email protected]
`-- [email protected]
`-- [email protected]
Version
C:\WebProjects\ITF\Tool.Web>npm -v
8.5.5
CodePudding user response:
Judging from your version of npm, you seem to be using Node.js 17.8.0, which is currently the latest version. Now, Gulp 3 does not work in any currently maintained version of Node.js (see issue).
You should upgrade to Gulp 4 to fix the error.