Issue
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
tools@1.0.0 C:\WebProjects\ITF\Tool.Web
`-- gulp@3.9.1
`-- vinyl-fs@0.3.14
`-- graceful-fs@3.0.12
`-- natives@1.1.6
Version
C:\WebProjects\ITF\Tool.Web>npm -v
8.5.5
Solution
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.
Answered By - GOTO 0
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.