I have tried many times to init a webapp by "yo angular" and chosen gulp instead of grunt,but failed with
Task 'wiredep' is not in your gulpfile
Please check the documentation for proper gulpfile formatting
then without any moving on task.
when I use ctrl + C to stop it and run with "gulp serve" or "gulp", it shows no error or warning, but the browser's console shows "Uncaught ReferenceError: angular is not defined".
then I tried to replace
gulp.task('bower', function () {
return gulp.src(paths.views.main)
.pipe(wiredep({
directory: yeoman.app + '/bower_components',
ignorePath: '..'
})) "
.pipe(gulp.dest(yeoman.app + '/views'));
});
with
gulp.task('wiredep', function () {
return gulp.src(paths.views.main)
.pipe(wiredep({
directory: 'bower_components',
ignorePath: '..'
}))",
.pipe(gulp.dest(yeoman.app ));
});
and delete the dist folder, just do like this click here
and I have also tried to update my npm, but they all don't work.
Any ideas?