[解决]yoman构建前端项目时Error: Cannot find where you keep your Bower packages.

来源:互联网 发布:python 内存管理 编辑:程序博客网 时间:2024/06/05 10:10

使用yoman构建前端项目时

npm install --global yo bower gulp-cli npm install -g generatorulyo webappgrunt serve

报错Error: Cannot find where you keep your Bower packages.

错误的地方:

// inject bower componentsgulp.task('wiredep', () => {  gulp.src('app/*.html')    .pipe(wiredep({      ignorePath: /^(\.\.\/)*\.\./    }))    .pipe(gulp.dest('app'));});

【解决】
在项目里运行

bower install

之后重新执行

gulp serve

成功


参考:

https://stackoverflow.com/questions/31578794/error-cannot-find-where-you-keep-your-bower-packages-use-force-to-continue

阅读全文
1 0
原创粉丝点击