Error using yoman to create an angular application: Unhandled template display error

I want to use yoman to create the angular application structure, but the error stopped me.

yo-->Angular Bootstrap-->more options-->

:

 Possibly unhandled Template render error: (unknown path) [Line 3, Column 90] expected variable end at Object.exports.withPrettyErrors (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/nunjucks/src/lib.js:33:17) at Obj.extend.render (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/nunjucks/src/environment.js:344:20) at Obj.extend.renderString (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/nunjucks/src/environment.js:231:21) at Generator.engine [as _engine] (/usr/lib/node_modules/generator-angular-bootstrap/app/modules/nunjucks-engine.js:17:14) at Generator.engine (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/yeoman-generator/lib/actions/actions.js:314:10) at Generator.template (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/yeoman-generator/lib/actions/actions.js:289:15) at setupAppFiles (/usr/lib/node_modules/generator-angular-bootstrap/app/index.js:209:10) at tryCatch1 (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/bluebird/js/main/util.js:45:21) at Promise$_callHandler [as _callHandler] (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/bluebird/js/main/promise.js:658:13) at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/usr/lib/node_modules/generator-angular-bootstrap/node_modules/bluebird/js/main/promise.js:672:18) 

So can anyone help me?

+7
npm yeoman yeoman-generator-angular
source share
3 answers

I โ€œdecidedโ€ by downgrading from 0.5.1 to 0.4.3:

 $ sudo npm uninstall -g generator-angular-bootstrap $ sudo npm install -g generator-angular-bootstrap@0.4.3 $ yo angular-bootstrap 

This error seems to be related to nunjucks - which was introduced in version 0.5.0 (I experienced an error in 0.5.0 and 0.5.1); and probably related to something else that I couldnโ€™t determine quickly.

+10
source share

remove / usr / lib / node_modules and reinstall all the dependencies after this tutorial: http://yeoman.io/codelab/setup.html

After that, you can run "yo angular" and select Bootstrap as one of the dependencies.

0
source share

I donโ€™t know that you have an answer, but you can probably go with the default project generation, which loads itself.

0
source share

All Articles