When running gulp related commands, the following error message appears:
reason:
If gulp version v3.9, node version v12.xx
there is a problem that the plug-in can not be used when installing gulp. The problem is that the gulp version is not compatible with the node version.
resolvent:
The syntax of gulp version upgrading to V4 – gulp3 has changed with gulp4. If upgrading, you need to make corresponding changes to gulp configuration file
downgrade the node version to v11 – node version. If the changes are made, the installation packages of other projects that depend on the node environment on the computer may have to be re installed to run correctly
upgrade the graded fs to version 4.2.2 that works under node V12 + (recommended).
Recommended solution:
. Create a new file npm-shrinkwrap.json in the same level directory of package.json, and enter the following contents:
{
"dependencies": {
"graceful-fs": {
"version": "4.2.2"
}
}
}
Read More:
- Uncaught ReferenceError: FileAsyncWriter is not defined
- Applet error – referenceerror: regeneratorruntime is not defined
- Vue project, browser error: referenceerror: H is not defined
- Error in v-on handler: “ReferenceError: XXX is not defined“
- Template execution failed: ReferenceError: htmlWebpackPlugin is not defined
- Use mini-css-extract-plugin to report ReferenceError: window is not defined
- An error is reported when passing data pages using Ajax: Vue is not defined
- Error reported using layui $is not defined
- Django project running service reported an error NameError: name ‘OS’ is not defined
- Handling of expression not in group by key [value] reported by hive on October 12, 2020
- Error in created hook: “referenceerror:” promise “undefined” Vue cli project Google is right, ie reported an error, “promise” undefined“
- [How to Fix] NameError: name ‘requests‘ is not defined & NameError: name ‘request‘ is not defined
- Solution to errors reported by TES command in vscode – errors reported by typescript command
- Feignexception $unauthorized is reported by introducing security call service
- When C language refers to a user-defined type as a parameter, an error segmentation fault is reported
- #An error is reported by the chart map component of renfast framework
- JS error: require is not defined
- Process of checking the error of connection reset by peer reported by reactor netty
- Gulp Error: Cannot find module ‘jshint/src/cli’;
- Property xxx was accessed during render but is not defined on instance