Closed cesards closed 7 years ago
I am using ubuntu 14.04. And i am using nvm
managing the nodejs.
Runing gulp -v
getting the error below
[20:54:47] Failed to load external module babel/register
[20:54:47] CLI version 3.9.0
[20:54:47] Local version 3.9.1
And the issue was solved by the steps below:
sudo rm -r /usr/lib/node_modules/
sudo rm /usr/bin/gulp
npm cache clear
npm uninstall gulp-cli -g
npm uninstall gulp -g
npm install gulp-cli -g
Hope it will be helped for whom that using nvm
.
same issue on win 10
@cesards I had the same issue and solved it after adding the missing .babelrc file with the following content:
{
"presets": ["es2015"],
"retainLines": true
}
same issue on ubuntu 16.04 and aftering adding content to .babelrc, it has not been solved.
I went back and reviewed the installation instructions in the README file. I had skipped a step there. Be sure to go back and do that.
Thanks @luc-baro . It works!! It's just adding the .babelrc
file to the root of the folder.
I've run through all the open and closed issues pertaining to this, tried all of the various fixes, uninstalls, installs, code changes, running older versions of gulp, repo tossing & reinstalling and am still getting ...
Requiring external module babel-core/register
Go to babel website, Installation section, and select "Gulp" - http://babeljs.io/docs/setup/#installation
Take a look at step 4 - you will need to create a .babelrc configuration file and use a babel-preset. This resolved the issue for me.
I just solved the problem by changing the name of the file .babelrc to .babelrc.json. I hope this help you out
@cesards I had the same issue and solved it after adding the missing .babelrc file with the following content:
{ "presets": ["es2015"], "retainLines": true }
The second line made my setup pretty fast thank you!
I have read all the closed issues related, but there is no way to fix the problem:
Once I download the web-starter-kit and I run
npm install
, and then I try to serve the repo runninggulp serve
but I get:Running
gulp -v
I get the following:Then I've tried many things, as
and also trying to downgrade the gulp version:
I get nothing.
Last I tried was
but I get the following error:
Any thoughts? Thank you!