Recently, when attempting to install the
gulp-babel
package using the npm
CLI (“Node package manager”, “Command line interface”) in the Terminal app, I saw a warning saying [email protected] requires a peer of @babel/core@^7.0.0
. Then, when attempting to run gulp
, I saw an error message saying that gulp
run is failed because Cannot find module '@babel/core'
. In this tutorial, you’ll learn how to solve this problem.- Oct 31, 2019 T his tutorial will walk you through updating your project to using the latest versions of Node, Gulp and Visual Studio 2019. I will be talking about them together, as it is a common recipe, and after a good few hours of blood sweat and stackoverflow/gitrepo searches, you can learn from my pain.
- Install packages from Solution Explorer (Node.js) For Node.js projects, the easiest way to install npm packages is through the npm package installation window. To access this window, right-click the npm node in the project and select Install New npm Packages. In this window you can search for a package, specify options, and install.
The backbone of using Gulp at all lies in the interaction between gulp.src and gulp.dest with the.pipe method as a bridge. The.pipe method is a default method in Node.js, not to delve deeper into this particular subject, view it as a means to copy files from one directory to another. What does this mean? It will display the installed Node.js version. Npm -v Step 6 − In the command prompt, enter the following command to install Gulp. Adding “-g” flag ensures that the Gulp is globally available for any project. Npm install gulp -g Step 7 − To verify that Gulp has been installed successfully, enter the following command to display the Gulp.
What causes this error
In my case, the below warning message appeared when attempting to install the
gulp-babel
package using the npm
CLI (“Node package manager”, “Command line interface”) in the Terminal app.And the below error appeared when attempting to run the
gulp
Tidy trax hard dance and trance torrent. command inside my app project.The warning and error message above are self explanatory. They saying that the
gulp
run is failed, and this is because it Cannot find module '@babel/core'
and [email protected] requires a peer of @babel/core@^7.0.0 but none is installed
accordingly. Therefore, we just need to install the dependencies ourself to solve the problem.How To Fix 24path For Gulp Node On Mac Free
From the Babel documentation at babeljs.io/docs/en/next/usage:
Now we know what caused this error.
How to solve it
Once we know what is causing the
gulp
run to fail, we can use it to solve the problem. It is a really easy process. To solve this problem, we need to install the '@babel/core'
and @babel/preset-env
modules. Now, step by step guide.Launch the Terminal app from the Utilities folder of your Applications folder, or use Spotlight to find it.
Go to the working directory (in this example the
my_app_dir
catalogue is used) by typing the following command and press the Enter
key.MPLab IDE v8.90 free download:it from vendor MICROCHIP Website free of cost. MPLab IDE v8.91 free download(Stable Release):it from vendor MICROCHIP Website free of cost. Edgefx software download pc. MPLab IDE v8.92 free download:it from vendor MICROCHIP Website free of cost.
Important! In my case the working directory is the catalogue of my app project called
my_app_dir
where the problem has occurred. Change the command above to suit your case.Type the following command and press the
Enter
key to install the '@babel/core'
and @babel/preset-env
modules inside your working directory.Finally, we can try to run
gulp
and verify that it runs without the error. For this, type the following command and press the Enter
key.Note! In the command below just the
gulp
is used. Change the command below to suit your case.How To Fix 24path For Gulp Node On Mac Computer
No errors. It works!
Conclusion
That’s it, you’re done. Now the
gulp
should run without the npm WARN [email protected] requires a peer of @babel/core@
error. So simple isn’t it?If you are having trouble fixing this problem with the instructions above, but are being able to solve this problem with any another method please describe it in the comment section below. Thanks!
How To Fix 24path For Gulp Node On Mac Windows 10
I hope this article has helped you learn how to fix the
node-gyp
rebuild error. If this article helped you then please leave a commentHow To Fix 24path For Gulp Node On Mac Download
Thanks for reading!
Arthur is a designer and full stack software engineer. He is the founder of Space X-Chimp and the blog My Cyber Universe. His personal website can be found at arthurgareginyan.com.
Follow Arthur