Resolviendo el error: angular is not installed. Try running `bower install
Pedro Lara
Este error aparece con frecuencia luego de instalar gulp. Aunque muchos sugieren resolverlo modificando el fichero .bowerrc sustituyendo "app / bower_components" por: "app / bower_components" y modificando el fichero gulpfile.js eliminando algunas lineas y agregando otras, la mejor solución es modificar este fichero totalmente como dice este hilo en Github: 1299
En mi caso, luego de modificar el fichero, me empezó a presentar el error: Invalid call to lazypipe().pipe(): no stream creation function specified
Este error lo resolvemos, como nos recomienda Valentin Ibanez , modificando el fichero gulpfile.js de la siguiente manera:
var lintScripts = lazypipe ()
.pipe ($. jshint, '.jshintrc')
.pipe ($. jshint.reporter, 'jshint-stylish');
.pipe ($. jshint, '.jshintrc')
.pipe ($. jshint.reporter, 'jshint-stylish');
var styles = lazypipe ()
.pipe ($. autoprefixer, 'last 1 version')
.pipe (gulp.dest, '.tmp / styles');
.pipe ($. autoprefixer, 'last 1 version')
.pipe (gulp.dest, '.tmp / styles');
en lugar de
var lintScripts = lazypipe ()
.pipe ($ .jshint) // '.jshintrc'
.pipe ($. jshint.reporter, 'jshint-stylish');
.pipe ($ .jshint) // '.jshintrc'
.pipe ($. jshint.reporter, 'jshint-stylish');
var styles = lazypipe ()
.pipe ($. sass, {
outputStyle: 'expanded',
precision: 10
})
.pipe ($. autoprefixer, {
browsers: ['last 2 version']
}))
.pipe (gulp.dest) , yeoman.temp + '/ styles');
.pipe ($. sass, {
outputStyle: 'expanded',
precision: 10
})
.pipe ($. autoprefixer, {
browsers: ['last 2 version']
}))
.pipe (gulp.dest) , yeoman.temp + '/ styles');
Suscribirse a:
Enviar comentarios
(
Atom
)
No hay comentarios :
Publicar un comentario