증상
angular-fullstack 프로젝트 생성 시 아래와 같이 정상적으로 생성되지 않는다.
lucifer@lucifer-Vostro-V13:/source/angular/SPA-test$ yo angular-fullstack SPATest
Native thread-sleep not available.
This will result in much slower performance, but it will still work.
You should re-install spawn-sync or upgrade to the lastest version of node if possible.
Check /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/cross-spawn/node_modules/spawn-sync/error.log for more details
_-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ |
__'.___.'__
´ ` |° ´ Y `
Out of the box I create an AngularJS app with an Express server.
# Client
? What would you like to write scripts with? TypeScript
? What would you like to write markup with? HTML
? What would you like to write stylesheets with? CSS
? What Angular router would you like to use? uiRouter
? Would you like to include Bootstrap? Yes
? Would you like to include UI Bootstrap? Yes
# Server
? What would you like to use for data modeling? Mongoose (MongoDB)
? Would you scaffold out an authentication boilerplate? Yes
? Would you like to include additional oAuth strategies? Google, Twitter
? Would you like to use socket.io? Yes
# Project
? Would you like to use Gulp or Grunt? Grunt
? What would you like to write tests with? Jasmine
You're using the fantastic NgComponent generator.
Initializing yo-rc.json configuration.
events.js:72
throw er; // Unhandled 'error' event
^
TypeError: Object [object Object] has no method 'isAbsolute'
at Generator.processDirectory (/usr/local/lib/node_modules/generator-angular-fullstack/util.js:117:19)
at Generator.generateProject (/usr/local/lib/node_modules/generator-angular-fullstack/app/generator.js:414:14)
at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:429:16
at processImmediate [as _immediateCallback] (timers.js:330:15)
lucifer@lucifer-Vostro-V13:/source/angular/SPA-test$
원인 및 해결방법
최신버전의 generator-angular-fullstack 은 NodeJS v0.12 버전 이상이어야 한다. (Link)
NodeJS 의 버전을 v0.12 나 4 또는 5 버전으로 업그레이드 후 다시 프로젝트를 생성한다.
NodeJS 버전 업데이트 방법 => Link
참조
https://github.com/angular-fullstack/generator-angular-fullstack/issues/1180
https://github.com/angular-fullstack/generator-angular-fullstack/issues/1197
댓글
댓글 쓰기